Skip to content

Commit

Permalink
Merge pull request #87 from creative-commoners/pulls/1.5/no-str-contains
Browse files Browse the repository at this point in the history
FIX Don't use PHP 8 syntax
  • Loading branch information
Maxime Rainville authored Apr 24, 2023
2 parents 453f6d6 + 460edcd commit 91a3886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transformer/PrivateStaticTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function getClassConfig($class)

// Detect deprecated config
$docComment = $prop->getDocComment();
if (str_contains($docComment, '@deprecated')) {
if (strpos($docComment, '@deprecated') !== false) {
$propName = $prop->getName();
$deprecated[$propName] = $this->getDeprecatedData($docComment, $class, $propName);
}
Expand Down

0 comments on commit 91a3886

Please sign in to comment.