diff --git a/lib/Doctrine/ORM/Configuration.php b/lib/Doctrine/ORM/Configuration.php index c1e6cc88068..84348315f6f 100644 --- a/lib/Doctrine/ORM/Configuration.php +++ b/lib/Doctrine/ORM/Configuration.php @@ -104,6 +104,7 @@ public function getAutoGenerateProxyClasses() * Sets the strategy for automatically generating proxy classes. * * @param bool|int $autoGenerate Possible values are constants of Doctrine\Common\Proxy\AbstractProxyFactory. + * @psalm-param bool|AutogenerateMode $autoGenerate * True is converted to AUTOGENERATE_ALWAYS, false to AUTOGENERATE_NEVER. * * @return void @@ -646,8 +647,9 @@ public function setCustomStringFunctions(array $functions) * * DQL function names are case-insensitive. * - * @param string $name Function name. - * @param string|callable $className Class name or a callable that returns the function. + * @param string $name Function name. + * @param class-string|callable $className Class name or a callable that returns the function. + * @psalm-param class-string|callable(string):FunctionNode $className * * @return void */ @@ -701,6 +703,7 @@ public function setCustomNumericFunctions(array $functions) * @param string $name Function name. * @param string|callable $className Class name or a callable that returns the function. * @psalm-param class-string|callable $className + * @psalm-param class-string|callable(string):FunctionNode $className * * @return void */