You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
fix: handler null after variable collision
This commit is contained in:
@@ -539,8 +539,9 @@ class NotificationBuilder implements NotificationBuilderInterface
|
||||
*/
|
||||
public function handler($handler)
|
||||
{
|
||||
$handler = $this->envelope->get('Flasher\Prime\Stamp\HandlerStamp');
|
||||
if ($handler instanceof HandlerStamp) {
|
||||
$stamp = $this->envelope->get('Flasher\Prime\Stamp\HandlerStamp');
|
||||
|
||||
if ($stamp instanceof HandlerStamp) {
|
||||
throw new \LogicException('You cannot change the handler of a notification once it has been set.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user