Skip to content

Commit

Permalink
FIX Don't use PHP 8 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Apr 23, 2023
1 parent 453f6d6 commit 460edcd
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 460edcd

Please sign in to comment.