Skip to content

Commit 4b1a2e4

Browse files
committed
Stuff
1 parent acd99b5 commit 4b1a2e4

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

Services/Facades/ComponentEventDispatcherFacade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
/**
88
* Class EventDispatcherFacade
99
* @package Prokl\BitrixOrdinaryToolsBundle\Services\Facades
10+
*
11+
* @method static dispatch($event) : void
1012
*/
1113
class ComponentEventDispatcherFacade extends AbstractFacade
1214
{

Services/SymfonyEvents/CustomEvents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

composer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
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
}

psalm.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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>

0 commit comments

Comments
 (0)