Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gennadigennadigennadi committed Feb 4, 2024
1 parent 8a14e1b commit 0c65e71
Show file tree
Hide file tree
Showing 61 changed files with 183 additions and 151 deletions.
2 changes: 1 addition & 1 deletion src/Contract/Config/AnalyserConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private function __construct()
{
}
/** @param ?array<array-key,EmitterType> $types */
public static function create(array $types = null, string $internalTag = null) : self
public static function create(?array $types = null, ?string $internalTag = null) : self
{
$analyser = new self();
$types ??= [\Qossmic\Deptrac\Contract\Config\EmitterType::CLASS_TOKEN, \Qossmic\Deptrac\Contract\Config\EmitterType::FUNCTION_TOKEN];
Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Config/Collector/TagValueRegexConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class TagValueRegexConfig extends CollectorConfig
public function __construct(private string $tag, private ?string $value = null)
{
}
public static function create(string $tag, string $regexpr = null) : self
public static function create(string $tag, ?string $regexpr = null) : self
{
return new self($tag, $regexpr);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Ast/AstMap/AstMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getClassInherits(ClassLikeToken $classLikeName) : iterable
*
* @return iterable<AstInherit>
*/
private function recursivelyResolveDependencies(\Qossmic\Deptrac\Core\Ast\AstMap\AstInherit $inheritDependency, ArrayObject $alreadyResolved = null, SplStack $pathStack = null) : iterable
private function recursivelyResolveDependencies(\Qossmic\Deptrac\Core\Ast\AstMap\AstInherit $inheritDependency, ?ArrayObject $alreadyResolved = null, ?SplStack $pathStack = null) : iterable
{
$alreadyResolved ??= new ArrayObject();
/** @var ArrayObject<string, true> $alreadyResolved */
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Ast/AstMap/ClassLike/ClassLikeReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ClassLikeReference extends TaggedTokenReference
* @param DependencyToken[] $dependencies
* @param array<string,list<string>> $tags
*/
public function __construct(private readonly \Qossmic\Deptrac\Core\Ast\AstMap\ClassLike\ClassLikeToken $classLikeName, \Qossmic\Deptrac\Core\Ast\AstMap\ClassLike\ClassLikeType $classLikeType = null, public readonly array $inherits = [], public readonly array $dependencies = [], public readonly array $tags = [], private readonly ?FileReference $fileReference = null)
public function __construct(private readonly \Qossmic\Deptrac\Core\Ast\AstMap\ClassLike\ClassLikeToken $classLikeName, ?\Qossmic\Deptrac\Core\Ast\AstMap\ClassLike\ClassLikeType $classLikeType = null, public readonly array $inherits = [], public readonly array $dependencies = [], public readonly array $tags = [], private readonly ?FileReference $fileReference = null)
{
parent::__construct($tags);
$this->type = $classLikeType ?? \Qossmic\Deptrac\Core\Ast\AstMap\ClassLike\ClassLikeType::TYPE_CLASSLIKE;
Expand Down
56 changes: 28 additions & 28 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -768,17 +768,17 @@
},
{
"name": "symfony\/console",
"version": "v6.4.2",
"version_normalized": "6.4.2.0",
"version": "v6.4.3",
"version_normalized": "6.4.3.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symfony\/console.git",
"reference": "0254811a143e6bc6c8deea08b589a7e68a37f625"
"reference": "2aaf83b4de5b9d43b93e4aec6f2f8b676f7c567e"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symfony\/console\/zipball\/0254811a143e6bc6c8deea08b589a7e68a37f625",
"reference": "0254811a143e6bc6c8deea08b589a7e68a37f625",
"url": "https:\/\/api.github.com\/repos\/symfony\/console\/zipball\/2aaf83b4de5b9d43b93e4aec6f2f8b676f7c567e",
"reference": "2aaf83b4de5b9d43b93e4aec6f2f8b676f7c567e",
"shasum": ""
},
"require": {
Expand Down Expand Up @@ -811,7 +811,7 @@
"symfony\/stopwatch": "^5.4|^6.0|^7.0",
"symfony\/var-dumper": "^5.4|^6.0|^7.0"
},
"time": "2023-12-10T16:15:48+00:00",
"time": "2024-01-23T14:51:35+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -845,7 +845,7 @@
"terminal"
],
"support": {
"source": "https:\/\/github.com\/symfony\/console\/tree\/v6.4.2"
"source": "https:\/\/github.com\/symfony\/console\/tree\/v6.4.3"
},
"funding": [
{
Expand Down Expand Up @@ -1019,17 +1019,17 @@
},
{
"name": "symfony\/event-dispatcher",
"version": "v6.4.2",
"version_normalized": "6.4.2.0",
"version": "v6.4.3",
"version_normalized": "6.4.3.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symfony\/event-dispatcher.git",
"reference": "e95216850555cd55e71b857eb9d6c2674124603a"
"reference": "ae9d3a6f3003a6caf56acd7466d8d52378d44fef"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symfony\/event-dispatcher\/zipball\/e95216850555cd55e71b857eb9d6c2674124603a",
"reference": "e95216850555cd55e71b857eb9d6c2674124603a",
"url": "https:\/\/api.github.com\/repos\/symfony\/event-dispatcher\/zipball\/ae9d3a6f3003a6caf56acd7466d8d52378d44fef",
"reference": "ae9d3a6f3003a6caf56acd7466d8d52378d44fef",
"shasum": ""
},
"require": {
Expand All @@ -1054,7 +1054,7 @@
"symfony\/service-contracts": "^2.5|^3",
"symfony\/stopwatch": "^5.4|^6.0|^7.0"
},
"time": "2023-12-27T22:16:42+00:00",
"time": "2024-01-23T14:51:35+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -1082,7 +1082,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https:\/\/symfony.com",
"support": {
"source": "https:\/\/github.com\/symfony\/event-dispatcher\/tree\/v6.4.2"
"source": "https:\/\/github.com\/symfony\/event-dispatcher\/tree\/v6.4.3"
},
"funding": [
{
Expand Down Expand Up @@ -1181,25 +1181,25 @@
},
{
"name": "symfony\/filesystem",
"version": "v6.4.0",
"version_normalized": "6.4.0.0",
"version": "v6.4.3",
"version_normalized": "6.4.3.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symfony\/filesystem.git",
"reference": "952a8cb588c3bc6ce76f6023000fb932f16a6e59"
"reference": "7f3b1755eb49297a0827a7575d5d2b2fd11cc9fb"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symfony\/filesystem\/zipball\/952a8cb588c3bc6ce76f6023000fb932f16a6e59",
"reference": "952a8cb588c3bc6ce76f6023000fb932f16a6e59",
"url": "https:\/\/api.github.com\/repos\/symfony\/filesystem\/zipball\/7f3b1755eb49297a0827a7575d5d2b2fd11cc9fb",
"reference": "7f3b1755eb49297a0827a7575d5d2b2fd11cc9fb",
"shasum": ""
},
"require": {
"php": ">=8.1",
"symfony\/polyfill-ctype": "~1.8",
"symfony\/polyfill-mbstring": "~1.8"
},
"time": "2023-07-26T17:27:13+00:00",
"time": "2024-01-23T14:51:35+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -1227,7 +1227,7 @@
"description": "Provides basic utilities for the filesystem",
"homepage": "https:\/\/symfony.com",
"support": {
"source": "https:\/\/github.com\/symfony\/filesystem\/tree\/v6.4.0"
"source": "https:\/\/github.com\/symfony\/filesystem\/tree\/v6.4.3"
},
"funding": [
{
Expand Down Expand Up @@ -1741,17 +1741,17 @@
},
{
"name": "symfony\/string",
"version": "v6.4.2",
"version_normalized": "6.4.2.0",
"version": "v6.4.3",
"version_normalized": "6.4.3.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symfony\/string.git",
"reference": "7cb80bc10bfcdf6b5492741c0b9357dac66940bc"
"reference": "7a14736fb179876575464e4658fce0c304e8c15b"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symfony\/string\/zipball\/7cb80bc10bfcdf6b5492741c0b9357dac66940bc",
"reference": "7cb80bc10bfcdf6b5492741c0b9357dac66940bc",
"url": "https:\/\/api.github.com\/repos\/symfony\/string\/zipball\/7a14736fb179876575464e4658fce0c304e8c15b",
"reference": "7a14736fb179876575464e4658fce0c304e8c15b",
"shasum": ""
},
"require": {
Expand All @@ -1771,7 +1771,7 @@
"symfony\/translation-contracts": "^2.5|^3.0",
"symfony\/var-exporter": "^5.4|^6.0|^7.0"
},
"time": "2023-12-10T16:15:48+00:00",
"time": "2024-01-25T09:26:29+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -1810,7 +1810,7 @@
"utf8"
],
"support": {
"source": "https:\/\/github.com\/symfony\/string\/tree\/v6.4.2"
"source": "https:\/\/github.com\/symfony\/string\/tree\/v6.4.3"
},
"funding": [
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions vendor/symfony/console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function setSignalsToDispatchEvent(int ...$signalsToDispatchEvent)
*
* @throws \Exception When running fails. Bypass this when {@link setCatchExceptions()}.
*/
public function run(InputInterface $input = null, OutputInterface $output = null) : int
public function run(?InputInterface $input = null, ?OutputInterface $output = null) : int
{
if (\function_exists('putenv')) {
@\putenv('LINES=' . $this->terminal->getHeight());
Expand Down Expand Up @@ -664,7 +664,7 @@ public function find(string $name)
*
* @return Command[]
*/
public function all(string $namespace = null)
public function all(?string $namespace = null)
{
$this->init();
if (null === $namespace) {
Expand Down Expand Up @@ -972,7 +972,7 @@ private function getAbbreviationSuggestions(array $abbrevs) : string
*
* This method is not part of public API and should not be used directly.
*/
public function extractNamespace(string $name, int $limit = null) : string
public function extractNamespace(string $name, ?int $limit = null) : string
{
$parts = \explode(':', $name, -1);
return \implode(':', null === $limit ? $parts : \array_slice($parts, 0, $limit));
Expand Down
8 changes: 4 additions & 4 deletions vendor/symfony/console/CI/GithubActionReporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function isGithubActionEnvironment() : bool
*
* @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
*/
public function error(string $message, string $file = null, int $line = null, int $col = null) : void
public function error(string $message, ?string $file = null, ?int $line = null, ?int $col = null) : void
{
$this->log('error', $message, $file, $line, $col);
}
Expand All @@ -49,7 +49,7 @@ public function error(string $message, string $file = null, int $line = null, in
*
* @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message
*/
public function warning(string $message, string $file = null, int $line = null, int $col = null) : void
public function warning(string $message, ?string $file = null, ?int $line = null, ?int $col = null) : void
{
$this->log('warning', $message, $file, $line, $col);
}
Expand All @@ -58,11 +58,11 @@ public function warning(string $message, string $file = null, int $line = null,
*
* @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-a-debug-message
*/
public function debug(string $message, string $file = null, int $line = null, int $col = null) : void
public function debug(string $message, ?string $file = null, ?int $line = null, ?int $col = null) : void
{
$this->log('debug', $message, $file, $line, $col);
}
private function log(string $type, string $message, string $file = null, int $line = null, int $col = null) : void
private function log(string $type, string $message, ?string $file = null, ?int $line = null, ?int $col = null) : void
{
// Some values must be encoded.
$message = \strtr($message, self::ESCAPED_DATA);
Expand Down
8 changes: 4 additions & 4 deletions vendor/symfony/console/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function getDefaultDescription() : ?string
*
* @throws LogicException When the command name is empty
*/
public function __construct(string $name = null)
public function __construct(?string $name = null)
{
$this->definition = new InputDefinition();
if (null === $name && null !== ($name = static::getDefaultName())) {
Expand Down Expand Up @@ -126,7 +126,7 @@ public function ignoreValidationErrors()
/**
* @return void
*/
public function setApplication(Application $application = null)
public function setApplication(?Application $application = null)
{
if (1 > \func_num_args()) {
\DEPTRAC_202402\trigger_deprecation('symfony/console', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);
Expand Down Expand Up @@ -403,7 +403,7 @@ public function getNativeDefinition() : InputDefinition
*
* @throws InvalidArgumentException When argument mode is not valid
*/
public function addArgument(string $name, int $mode = null, string $description = '', mixed $default = null) : static
public function addArgument(string $name, ?int $mode = null, string $description = '', mixed $default = null) : static
{
$suggestedValues = 5 <= \func_num_args() ? \func_get_arg(4) : [];
if (!\is_array($suggestedValues) && !$suggestedValues instanceof \Closure) {
Expand All @@ -425,7 +425,7 @@ public function addArgument(string $name, int $mode = null, string $description
*
* @throws InvalidArgumentException If option mode is invalid or incompatible
*/
public function addOption(string $name, string|array $shortcut = null, int $mode = null, string $description = '', mixed $default = null) : static
public function addOption(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', mixed $default = null) : static
{
$suggestedValues = 6 <= \func_num_args() ? \func_get_arg(5) : [];
if (!\is_array($suggestedValues) && !$suggestedValues instanceof \Closure) {
Expand Down
6 changes: 3 additions & 3 deletions vendor/symfony/console/Command/LazyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function ignoreValidationErrors() : void
{
$this->getCommand()->ignoreValidationErrors();
}
public function setApplication(Application $application = null) : void
public function setApplication(?Application $application = null) : void
{
if (1 > \func_num_args()) {
\DEPTRAC_202402\trigger_deprecation('symfony/console', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);
Expand Down Expand Up @@ -93,7 +93,7 @@ public function getNativeDefinition() : InputDefinition
/**
* @param array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion
*/
public function addArgument(string $name, int $mode = null, string $description = '', mixed $default = null) : static
public function addArgument(string $name, ?int $mode = null, string $description = '', mixed $default = null) : static
{
$suggestedValues = 5 <= \func_num_args() ? \func_get_arg(4) : [];
$this->getCommand()->addArgument($name, $mode, $description, $default, $suggestedValues);
Expand All @@ -102,7 +102,7 @@ public function addArgument(string $name, int $mode = null, string $description
/**
* @param array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion
*/
public function addOption(string $name, string|array $shortcut = null, int $mode = null, string $description = '', mixed $default = null) : static
public function addOption(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', mixed $default = null) : static
{
$suggestedValues = 6 <= \func_num_args() ? \func_get_arg(5) : [];
$this->getCommand()->addOption($name, $shortcut, $mode, $description, $default, $suggestedValues);
Expand Down
2 changes: 1 addition & 1 deletion vendor/symfony/console/Command/LockableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait LockableTrait
/**
* Locks a command.
*/
private function lock(string $name = null, bool $blocking = \false) : bool
private function lock(?string $name = null, bool $blocking = \false) : bool
{
if (!\class_exists(SemaphoreStore::class)) {
throw new LogicException('To enable the locking feature you must install the symfony/lock component. Try running "composer require symfony/lock".');
Expand Down
6 changes: 3 additions & 3 deletions vendor/symfony/console/Command/TraceableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function ignoreValidationErrors() : void
$this->command->ignoreValidationErrors();
parent::ignoreValidationErrors();
}
public function setApplication(Application $application = null) : void
public function setApplication(?Application $application = null) : void
{
$this->command->setApplication($application);
}
Expand Down Expand Up @@ -161,12 +161,12 @@ public function getNativeDefinition() : InputDefinition
{
return $this->command->getNativeDefinition();
}
public function addArgument(string $name, int $mode = null, string $description = '', mixed $default = null, array|\Closure $suggestedValues = []) : static
public function addArgument(string $name, ?int $mode = null, string $description = '', mixed $default = null, array|\Closure $suggestedValues = []) : static
{
$this->command->addArgument($name, $mode, $description, $default, $suggestedValues);
return $this;
}
public function addOption(string $name, string|array $shortcut = null, int $mode = null, string $description = '', mixed $default = null, array|\Closure $suggestedValues = []) : static
public function addOption(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', mixed $default = null, array|\Closure $suggestedValues = []) : static
{
$this->command->addOption($name, $shortcut, $mode, $description, $default, $suggestedValues);
return $this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
final class CommandDataCollector extends DataCollector
{
public function collect(Request $request, Response $response, \Throwable $exception = null) : void
public function collect(Request $request, Response $response, ?\Throwable $exception = null) : void
{
if (!$request instanceof CliRequest) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ApplicationDescription
* @var array<string, Command>
*/
private array $aliases = [];
public function __construct(Application $application, string $namespace = null, bool $showHidden = \false)
public function __construct(Application $application, ?string $namespace = null, bool $showHidden = \false)
{
$this->application = $application;
$this->namespace = $namespace;
Expand Down
Loading

0 comments on commit 0c65e71

Please sign in to comment.