mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 03:40:50 +00:00
aae549741f
0cb3fd0feb
[Php73] Handle crash Type Error on JsonThrowOnErrorRector (#4626)
44 lines
890 B
PHP
44 lines
890 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
/*
|
|
* This file is part of Evenement.
|
|
*
|
|
* (c) Igor Wiedler <igor@wiedler.ch>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
namespace RectorPrefix202308\Evenement\Tests;
|
|
|
|
class Listener
|
|
{
|
|
private $data = [];
|
|
private $magicData = [];
|
|
private static $staticData = [];
|
|
public function onFoo($data)
|
|
{
|
|
$this->data[] = $data;
|
|
}
|
|
public function __invoke($data)
|
|
{
|
|
$this->magicData[] = $data;
|
|
}
|
|
public static function onBar($data)
|
|
{
|
|
self::$staticData[] = $data;
|
|
}
|
|
public function getData()
|
|
{
|
|
return $this->data;
|
|
}
|
|
public function getMagicData()
|
|
{
|
|
return $this->magicData;
|
|
}
|
|
public static function getStaticData()
|
|
{
|
|
return self::$staticData;
|
|
}
|
|
}
|