File tree Expand file tree Collapse file tree 4 files changed +40
-2
lines changed Expand file tree Collapse file tree 4 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 77/**
88 * Class EventDispatcherFacade
99 * @package Prokl\BitrixOrdinaryToolsBundle\Services\Facades
10+ *
11+ * @method static dispatch($event) : void
1012 */
1113class ComponentEventDispatcherFacade extends AbstractFacade
1214{
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function __construct(
4646 $ handlers = array_filter ($ handlers );
4747
4848 if (count ($ handlers ) > 0 ) {
49- $ this ->listenersCollection = $ handlers ;
49+ $ this ->listenersCollection = current ( $ handlers) ;
5050 }
5151
5252 $ this ->dispatcher = $ dispatcher ;
Original file line number Diff line number Diff line change 2525 "symfony/http-kernel" : " ^4.0 || ^5.0" ,
2626 "symfony/config" : " ~4|~5" ,
2727 "intervention/image" : " ^2.5"
28+ },
29+ "require-dev" : {
30+ "proklung/bitrix-phpunit-testing-tools" : " ^1.0"
31+ },
32+ "extra" : {
33+ "installer-paths" : {
34+ "vendor/sheerockoff/bitrix-ci/files/bitrix/modules/{$name}/" : [" type:bitrix-module" ]
35+ }
2836 }
29-
3037}
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <psalm
3+ errorLevel =" 1"
4+ resolveFromConfigFile =" true"
5+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6+ xmlns =" https://getpsalm.org/schema/config"
7+ xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+ allowStringToStandInForClass =" true"
9+ allowCoercionFromStringToClassConst =" true"
10+ findUnusedPsalmSuppress =" true"
11+ skipChecksOnUnresolvableIncludes =" true"
12+ >
13+ <plugins >
14+ <pluginClass class =" Psalm\SymfonyPsalmPlugin\Plugin" />
15+ <pluginClass class =" Psalm\MockeryPlugin\Plugin" />
16+ </plugins >
17+ <projectFiles >
18+ <directory name =" /" />
19+ <ignoreFiles >
20+ <directory name =" vendor" />
21+ <directory name =" Tests" />
22+ <file name =" BitrixOrdinaryToolsBundle.php" />
23+ </ignoreFiles >
24+ </projectFiles >
25+
26+ <issueHandlers >
27+
28+ </issueHandlers >
29+ </psalm >
You can’t perform that action at this time.
0 commit comments