Skip to content

Commit

Permalink
Fix phpcs notices (#91)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Nov 4, 2022
1 parent 39894fc commit c00c1f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
},
"require-dev": {
"atoum/atoum": "^3.4 || ^4.0",
"m6web/php-cs-fixer-config": "^2.0",
"phpstan/phpstan": "^1.3",
"m6web/php-cs-fixer-config": "2.1.0",
"phpstan/phpstan": "1.4.10",
"symfony/console": "^4.4 || ^5.0 || ^6.0",
"symfony/http-foundation": "^4.4 || ^5.0 || ^6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor)
* @param Event $event an event
* @param string $name the event name
*
* @throws Exception
*
* @return void
*
* @throws Exception
*/
public function handleEvent($event, $name = null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/M6WebStatsdExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ public function load(array $configs, ContainerBuilder $container)
* @param array $servers List of available servers as describe in the config file
* @param bool $baseEvents Register base events
*
* @throws InvalidConfigurationException
*
* @return string the service name
*
* @throws InvalidConfigurationException
*/
protected function loadClient($container, $alias, array $config, array $servers, $baseEvents)
{
Expand Down
3 changes: 0 additions & 3 deletions src/Tests/Units/DependencyInjection/M6WebStatsdExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ protected function initContainer($resource, $debug = false)
$this->container->compile();
}

/**
* @param $resource
*/
protected function loadConfiguration(ContainerBuilder $container, $resource)
{
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../Fixtures/'));
Expand Down

0 comments on commit c00c1f3

Please sign in to comment.