Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ infection.json export-ignore
Makefile export-ignore
phpstan.neon.dist export-ignore
phpstan-baseline.neon export-ignore
psalm-baseline.xml export-ignore
psalm.xml export-ignore
phpunit.xml.dist export-ignore
/tests export-ignore
/vendor-bin export-ignore
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ cs: vendor-bin/tools/vendor
cs-fix: vendor-bin/tools/vendor
vendor/bin/php-cs-fixer fix --verbose

.PHONY: psalm
psalm: vendor-bin/tools/vendor
vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4

.PHONY: phpstan
phpstan: vendor-bin/tools/vendor
vendor/bin/phpstan analyse
Expand Down
2 changes: 0 additions & 2 deletions psalm-baseline.xml

This file was deleted.

24 changes: 0 additions & 24 deletions psalm.xml

This file was deleted.

2 changes: 1 addition & 1 deletion src/DependencyInjection/NucleosMenuExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function load(array $configs, ContainerBuilder $container): void

$container->setParameter('nucleos_menu.groups', array_combine(
array_map(static function (string $name): string {
return sprintf('static_%s', $name);
return \sprintf('static_%s', $name);
}, array_keys($config['groups'])),
$config['groups']
));
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(ConfigBuilderInterface $builder, array $menuIds)
public function get($name, array $options = []): ItemInterface
{
if (!$this->has($name)) {
throw new InvalidArgumentException(sprintf('The menu "%s" is not defined.', $name));
throw new InvalidArgumentException(\sprintf('The menu "%s" is not defined.', $name));
}

return $this->builder->buildMenu($this->menus[$name], $options);
Expand Down
3 changes: 1 addition & 2 deletions tests/Menu/ConfigBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,9 @@ public function testBuildMenuWithChildren(): void
protected function withParameter(InvokedCount $matcher, array $parameters): Closure
{
return static function () use ($matcher, $parameters): void {
/** @psalm-suppress InternalMethod */
$callNumber = $matcher->numberOfInvocations();

Assert::assertEquals($parameters[$callNumber-1], \func_get_args(), sprintf('Call %s', $callNumber));
Assert::assertEquals($parameters[$callNumber-1], \func_get_args(), \sprintf('Call %s', $callNumber));
};
}
}
5 changes: 1 addition & 4 deletions vendor-bin/tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
"phpstan/phpstan-strict-rules": "^1.5.1",
"phpstan/phpstan-symfony": "^1.3.1",
"phpunit/phpunit": "^10.1.2",
"psalm/plugin-phpunit": "^0.19.0",
"psalm/plugin-symfony": "^5.0.3",
"symfony/phpunit-bridge": "^7.0.0",
"vimeo/psalm": "^5.9"
"symfony/phpunit-bridge": "^7.0.0"
},
"config": {
"allow-plugins": {
Expand Down
Loading
Loading