@@ -162,10 +162,8 @@ public function setProxyDir(string $directory) : void
162
162
*
163
163
* @param boolean|int $autoGenerate Possible values are constants of Doctrine\ORM\Proxy\Factory\ProxyFactory.
164
164
* True is converted to AUTOGENERATE_ALWAYS, false to AUTOGENERATE_NEVER.
165
- *
166
- * @return void
167
165
*/
168
- public function setAutoGenerateProxyClasses ($ autoGenerate )
166
+ public function setAutoGenerateProxyClasses ($ autoGenerate ) : void
169
167
{
170
168
$ proxyManagerConfig = $ this ->getProxyManagerConfiguration ();
171
169
@@ -432,10 +430,8 @@ public function getCustomStringFunction(string $functionName)
432
430
* Any previously added string functions are discarded.
433
431
*
434
432
* @param array $functions The map of custom DQL string functions.
435
- *
436
- * @return void
437
433
*/
438
- public function setCustomStringFunctions (array $ functions )
434
+ public function setCustomStringFunctions (array $ functions ) : void
439
435
{
440
436
foreach ($ functions as $ name => $ className ) {
441
437
$ this ->addCustomStringFunction ($ name , $ className );
@@ -500,11 +496,9 @@ public function addCustomDatetimeFunction(string $functionName, $classNameOrFact
500
496
/**
501
497
* Gets the implementation class name of a registered custom date/time DQL function.
502
498
*
503
- * @param string $name
504
- *
505
- * @return string|null
499
+ * @return string|callable|null
506
500
*/
507
- public function getCustomDatetimeFunction ($ functionName )
501
+ public function getCustomDatetimeFunction (string $ functionName )
508
502
{
509
503
return $ this ->customDatetimeFunctions [\strtolower ($ functionName )] ?? null ;
510
504
}
@@ -518,10 +512,8 @@ public function getCustomDatetimeFunction($functionName)
518
512
* Any previously added date/time functions are discarded.
519
513
*
520
514
* @param array $functions The map of custom DQL date/time functions.
521
- *
522
- * @return void
523
515
*/
524
- public function setCustomDatetimeFunctions (array $ functions )
516
+ public function setCustomDatetimeFunctions (array $ functions ) : void
525
517
{
526
518
foreach ($ functions as $ name => $ className ) {
527
519
$ this ->addCustomDatetimeFunction ($ name , $ className );
0 commit comments