Skip to content

Commit c00c1f3

Browse files
bullderMichael GarifullinOliboy50
authored
Fix phpcs notices (#91)
* fix(cs): pin phpstan and cs-fixer-config dependencies Co-authored-by: Michael Garifullin <michael.garifullin@smartbox.com> Co-authored-by: Oliboy50 <oliver.thebault@gmail.com>
1 parent 39894fc commit c00c1f3

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
},
3030
"require-dev": {
3131
"atoum/atoum": "^3.4 || ^4.0",
32-
"m6web/php-cs-fixer-config": "^2.0",
33-
"phpstan/phpstan": "^1.3",
32+
"m6web/php-cs-fixer-config": "2.1.0",
33+
"phpstan/phpstan": "1.4.10",
3434
"symfony/console": "^4.4 || ^5.0 || ^6.0",
3535
"symfony/http-foundation": "^4.4 || ^5.0 || ^6.0"
3636
},

src/Client/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor)
7676
* @param Event $event an event
7777
* @param string $name the event name
7878
*
79-
* @throws Exception
80-
*
8179
* @return void
80+
*
81+
* @throws Exception
8282
*/
8383
public function handleEvent($event, $name = null)
8484
{

src/DependencyInjection/M6WebStatsdExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ public function load(array $configs, ContainerBuilder $container)
101101
* @param array $servers List of available servers as describe in the config file
102102
* @param bool $baseEvents Register base events
103103
*
104-
* @throws InvalidConfigurationException
105-
*
106104
* @return string the service name
105+
*
106+
* @throws InvalidConfigurationException
107107
*/
108108
protected function loadClient($container, $alias, array $config, array $servers, $baseEvents)
109109
{

src/Tests/Units/DependencyInjection/M6WebStatsdExtension.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ protected function initContainer($resource, $debug = false)
3535
$this->container->compile();
3636
}
3737

38-
/**
39-
* @param $resource
40-
*/
4138
protected function loadConfiguration(ContainerBuilder $container, $resource)
4239
{
4340
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../Fixtures/'));

0 commit comments

Comments
 (0)