Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump composer.lock #1344

Merged
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: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BOX_BIN := ./vendor/bin/box
BOX_BIN := ./build/box.phar
COMPOSER_BIN := composer
PHP_BIN := php
PHP_CS_FIXER_BIN := ./vendor/bin/php-cs-fixer
Expand Down
Binary file added build/box.phar
Binary file not shown.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.4",
"humbug/box": "^4.1.0",
"infection/infection": "^0.26.16",
"phpstan/phpstan": "^1.6.8",
"phpstan/phpstan-symfony": "^1.1",
Expand Down
1,718 changes: 456 additions & 1,262 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
*/
$services->set(EventDispatcher::class);
$services->alias(EventDispatcherInterface::class, EventDispatcher::class);
$services->alias(\Symfony\Component\EventDispatcher\EventDispatcherInterface::class, EventDispatcher::class);
$services->alias(Symfony\Component\EventDispatcher\EventDispatcherInterface::class, EventDispatcher::class);
$services->alias('event_dispatcher', EventDispatcher::class);
$services
->set(FileInputCollector::class)
Expand Down
20 changes: 20 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,23 @@ parameters:
message: "#^Method Qossmic\\\\Deptrac\\\\Contract\\\\Result\\\\OutputResult\\:\\:allOf\\(\\) should return list\\<T of Qossmic\\\\Deptrac\\\\Contract\\\\Result\\\\RuleInterface\\> but returns list\\<Qossmic\\\\Deptrac\\\\Contract\\\\Result\\\\RuleInterface\\>\\.$#"
count: 1
path: src/Contract/Result/OutputResult.php

-
message: "#^Method Qossmic\\\\Deptrac\\\\Core\\\\Ast\\\\AstMap\\\\ReferenceBuilder\\:\\:superglobal\\(\\) throws checked exception TypeError but it's missing from the PHPDoc @throws tag\\.$#"
count: 1
path: src/Core/Ast/AstMap/ReferenceBuilder.php

-
message: "#^Method Qossmic\\\\Deptrac\\\\Core\\\\Ast\\\\AstMap\\\\ReferenceBuilder\\:\\:superglobal\\(\\) throws checked exception ValueError but it's missing from the PHPDoc @throws tag\\.$#"
count: 1
path: src/Core/Ast/AstMap/ReferenceBuilder.php

-
message: "#^Method Qossmic\\\\Deptrac\\\\Supportive\\\\Console\\\\Command\\\\DebugTokenCommand\\:\\:execute\\(\\) throws checked exception TypeError but it's missing from the PHPDoc @throws tag\\.$#"
count: 1
path: src/Supportive/Console/Command/DebugTokenCommand.php

-
message: "#^Method Qossmic\\\\Deptrac\\\\Supportive\\\\Console\\\\Command\\\\DebugTokenCommand\\:\\:execute\\(\\) throws checked exception ValueError but it's missing from the PHPDoc @throws tag\\.$#"
count: 1
path: src/Supportive/Console/Command/DebugTokenCommand.php
2 changes: 1 addition & 1 deletion src/Core/Analyser/LayerDependenciesAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(
/**
* @return array<string, list<Uncovered>>
*
* @throws \Qossmic\Deptrac\Core\Analyser\AnalyserException
* @throws AnalyserException
*/
public function getDependencies(string $layer, ?string $targetLayer): array
{
Expand Down
8 changes: 4 additions & 4 deletions src/Core/Analyser/LayerForTokenAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public function findLayerForToken(string $tokenName, TokenType $tokenType): arra
*
* @return array<string, string[]>
*
* @throws \Qossmic\Deptrac\Core\Dependency\UnrecognizedTokenException
* @throws \Qossmic\Deptrac\Contract\Layer\InvalidLayerDefinitionException
* @throws \Qossmic\Deptrac\Contract\Layer\InvalidCollectorDefinitionException
* @throws \Qossmic\Deptrac\Contract\Ast\CouldNotParseFileException
* @throws UnrecognizedTokenException
* @throws InvalidLayerDefinitionException
* @throws InvalidCollectorDefinitionException
* @throws CouldNotParseFileException
*/
private function findLayersForReferences(array $references, string $tokenName, AstMap $astMap): array
{
Expand Down
14 changes: 7 additions & 7 deletions src/Core/Analyser/RulesetUsageAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function analyse(): array
/**
* @return array<string, array<string, 0>> sourceLayer -> (targetLayer -> 0)
*
* @throws \Qossmic\Deptrac\Contract\Layer\CircularReferenceException
* @throws CircularReferenceException
*/
private function rulesetResolution(): array
{
Expand All @@ -84,12 +84,12 @@ private function rulesetResolution(): array
*
* @return array<string, array<string, int>>
*
* @throws \Qossmic\Deptrac\Core\Ast\AstException
* @throws \Qossmic\Deptrac\Contract\Ast\CouldNotParseFileException
* @throws \Qossmic\Deptrac\Core\Dependency\InvalidEmitterConfigurationException
* @throws \Qossmic\Deptrac\Contract\Layer\InvalidCollectorDefinitionException
* @throws \Qossmic\Deptrac\Contract\Layer\InvalidLayerDefinitionException
* @throws \Qossmic\Deptrac\Core\Dependency\UnrecognizedTokenException
* @throws AstException
* @throws CouldNotParseFileException
* @throws InvalidEmitterConfigurationException
* @throws InvalidCollectorDefinitionException
* @throws InvalidLayerDefinitionException
* @throws UnrecognizedTokenException
*/
private function findRulesetUsages(array $rulesets): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Supportive/OutputFormatter/GraphVizOutputFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private function getSubgraphName(string $groupName): string
}

/**
* @throws \Qossmic\Deptrac\Contract\OutputFormatter\OutputException
* @throws OutputException
*/
abstract protected function output(Graph $graph, OutputInterface $output, OutputFormatterInput $outputFormatterInput): void;
}
Loading