Skip to content

Commit

Permalink
PHP 8.2: fix deprecated ${var} in strings #220
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Sep 15, 2023
1 parent 2a99266 commit 8b6ca87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/oik-depends.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php // (C) Copyright Bobbing Wide 2012-2023
if ( !defined( "OIK_DEPENDS_INCLUDED" ) ) {
define( "OIK_DEPENDS_INCLUDED", "3.2.7" );
define( "OIK_DEPENDS_INCLUDED", "3.2.8" );

/**
* Dependency checking library functions
Expand Down Expand Up @@ -192,7 +192,7 @@ function oik_plugin_plugin_inactive( $plugin=null, $dependencies=null, $problem=
*/
function oik_check_version( $depend, $version ) {
$active = true;
$version_func = "${depend}_version";
$version_func = "{$depend}_version";
if ( is_callable( $version_func )) {
$active_version = $version_func();
$active = version_compare( $active_version, $version, "ge" );
Expand Down

0 comments on commit 8b6ca87

Please sign in to comment.