You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Mercure Publish fails if an expression is used which could return false: The value of the "mercure" attribute of the "MyClass" resource class must be a boolean, an array of options or an expression returning this array, "boolean" given.'
How to reproduce
/**
* @ApiResource(
* mercure="object.mercure()"
* )
*/
class MyClass
{
[...]
private function mercure(){
return false;
}
}
Possible Solution
Maybe just move the if-clause in
API Platform version(s) affected: 2.5
Description
Mercure Publish fails if an expression is used which could return false:
The value of the "mercure" attribute of the "MyClass" resource class must be a boolean, an array of options or an expression returning this array, "boolean" given.'
How to reproduce
Possible Solution
Maybe just move the if-clause in
core/src/Bridge/Doctrine/EventListener/PublishMercureUpdatesListener.php
Line 157 in 38d69e6
core/src/Bridge/Doctrine/EventListener/PublishMercureUpdatesListener.php
Line 161 in 38d69e6
The text was updated successfully, but these errors were encountered: