diff --git a/src/Transformer/PrivateStaticTransformer.php b/src/Transformer/PrivateStaticTransformer.php index 00aaeb5..1568b1e 100644 --- a/src/Transformer/PrivateStaticTransformer.php +++ b/src/Transformer/PrivateStaticTransformer.php @@ -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); }