Skip to content

Commit

Permalink
Merge pull request #107 from phug-php/fix/strict-in-array
Browse files Browse the repository at this point in the history
Use strict in_array checks in renderer

split: 2c790252a91d64396e3daf6f9027bdb491c69b7e
  • Loading branch information
kylekatarnls authored Sep 2, 2023
1 parent cb876f6 commit d66be88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Phug/Partial/ExtensionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function getExtensionsOptions(array $extensions, array $options =
*/
public static function hasExtension($extensionClassName)
{
return in_array(static::normalizeExtensionClassName($extensionClassName), static::getExtensionIds());
return in_array(static::normalizeExtensionClassName($extensionClassName), static::getExtensionIds(), true);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Phug/Partial/FacadeOptionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected static function isOptionMethod($method)
'setOptionsRecursive',
'setOptionsDefaults',
'unsetOption',
]);
], true);
}

protected static function getFacadeOptions()
Expand Down

0 comments on commit d66be88

Please sign in to comment.