-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from spiral/maintenance
Maintenance
- Loading branch information
Showing
101 changed files
with
591 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
/.github export-ignore | ||
/tests export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
phpunit.xml export-ignore | ||
/.* export-ignore | ||
/tests export-ignore | ||
/*.xml export-ignore | ||
/*.yml export-ignore | ||
/*.lock export-ignore | ||
/*.dist export-ignore |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- '*' | ||
|
||
name: Fix Code Style | ||
|
||
jobs: | ||
cs-fix: | ||
permissions: | ||
contents: write | ||
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once 'vendor/autoload.php'; | ||
|
||
return \Spiral\CodeStyle\Builder::create() | ||
->include(__DIR__ . '/src') | ||
->include(__DIR__ . '/tests/src') | ||
->include(__FILE__) | ||
->cache('./runtime/php-cs-fixer.cache') | ||
->allowRisky() | ||
->build(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0"> | ||
<file src="src/Bootloader/GRPCBootloader.php"> | ||
<ArgumentTypeCoercion> | ||
<code><![CDATA[$list]]></code> | ||
</ArgumentTypeCoercion> | ||
<DeprecatedClass> | ||
<code><![CDATA[CompatiblePipelineBuilder::class]]></code> | ||
</DeprecatedClass> | ||
<DeprecatedInterface> | ||
<code><![CDATA[Autowire|class-string<CoreInterceptorInterface>|CoreInterceptorInterface]]></code> | ||
</DeprecatedInterface> | ||
<DocblockTypeContradiction> | ||
<code><![CDATA[$container->get(CompatiblePipelineBuilder::class)]]></code> | ||
</DocblockTypeContradiction> | ||
<InvalidArgument> | ||
<code><![CDATA[$listener]]></code> | ||
</InvalidArgument> | ||
<RedundantConditionGivenDocblockType> | ||
<code><![CDATA[$pipelineBuilder]]></code> | ||
</RedundantConditionGivenDocblockType> | ||
<TooManyArguments> | ||
<code><![CDATA[new AutowireHandler($container, false)]]></code> | ||
</TooManyArguments> | ||
</file> | ||
<file src="src/Centrifugo/Dispatcher.php"> | ||
<DeprecatedClass> | ||
<code><![CDATA[CompatiblePipelineBuilder::class]]></code> | ||
</DeprecatedClass> | ||
<UndefinedThisPropertyAssignment> | ||
<code><![CDATA[$this->pipelineBuilder]]></code> | ||
</UndefinedThisPropertyAssignment> | ||
</file> | ||
<file src="src/Centrifugo/Interceptor/InterceptorRegistry.php"> | ||
<DeprecatedInterface> | ||
<code><![CDATA[$object]]></code> | ||
<code><![CDATA[array]]></code> | ||
</DeprecatedInterface> | ||
<LessSpecificReturnStatement> | ||
<code><![CDATA[\array_merge( | ||
$this->interceptors[self::INTERCEPTORS_FOR_ALL_SERVICES] ?? [], | ||
$this->interceptors[$type] ?? [], | ||
)]]></code> | ||
</LessSpecificReturnStatement> | ||
<MoreSpecificReturnType> | ||
<code><![CDATA[array]]></code> | ||
</MoreSpecificReturnType> | ||
</file> | ||
<file src="src/Centrifugo/Interceptor/RegistryInterface.php"> | ||
<DeprecatedInterface> | ||
<code><![CDATA[TInterceptor|TLegacyInterceptor]]></code> | ||
<code><![CDATA[list<TInterceptor|TLegacyInterceptor>]]></code> | ||
</DeprecatedInterface> | ||
</file> | ||
<file src="src/Centrifugo/RequestHandler.php"> | ||
<DeprecatedInterface> | ||
<code><![CDATA[RequestHandler]]></code> | ||
</DeprecatedInterface> | ||
</file> | ||
<file src="src/Centrifugo/Server.php"> | ||
<DeprecatedClass> | ||
<code><![CDATA[CompatiblePipelineBuilder::class]]></code> | ||
</DeprecatedClass> | ||
<PossiblyNullArgument> | ||
<code><![CDATA[$services->getService($type)]]></code> | ||
</PossiblyNullArgument> | ||
</file> | ||
<file src="src/Config/GRPCConfig.php"> | ||
<DeprecatedInterface> | ||
<code><![CDATA[array<Autowire|class-string<InterceptorInterface>|class-string<CoreInterceptorInterface>>]]></code> | ||
</DeprecatedInterface> | ||
</file> | ||
<file src="src/Config/TcpConfig.php"> | ||
<DeprecatedInterface> | ||
<code><![CDATA[array<non-empty-string, list<TInterceptor|TLegacyInterceptor>>]]></code> | ||
</DeprecatedInterface> | ||
</file> | ||
<file src="src/Console/Command/GRPC/GenerateCommand.php"> | ||
<PossiblyNullArgument> | ||
<code><![CDATA[$binaryPath]]></code> | ||
</PossiblyNullArgument> | ||
<RedundantCondition> | ||
<code><![CDATA[$binaryPath !== null]]></code> | ||
<code><![CDATA[\assert($binaryPath !== null)]]></code> | ||
</RedundantCondition> | ||
<RiskyTruthyFalsyComparison> | ||
<code><![CDATA[\realpath($protoFile)]]></code> | ||
</RiskyTruthyFalsyComparison> | ||
</file> | ||
<file src="src/GRPC/ProtoCompiler.php"> | ||
<RiskyTruthyFalsyComparison> | ||
<code><![CDATA[\realpath($protoFile)]]></code> | ||
<code><![CDATA[\realpath($this->tmpDir())]]></code> | ||
</RiskyTruthyFalsyComparison> | ||
</file> | ||
<file src="src/GRPC/ProtocCommandBuilder.php"> | ||
<RiskyTruthyFalsyComparison> | ||
<code><![CDATA[\realpath($dir)]]></code> | ||
<code><![CDATA[\realpath($path)]]></code> | ||
</RiskyTruthyFalsyComparison> | ||
</file> | ||
<file src="src/GRPC/ServiceLocator.php"> | ||
<MoreSpecificImplementedParamType> | ||
<code><![CDATA[$class]]></code> | ||
</MoreSpecificImplementedParamType> | ||
<RedundantCondition> | ||
<code><![CDATA[$interface->isSubclassOf($className)]]></code> | ||
</RedundantCondition> | ||
</file> | ||
<file src="src/Queue/Dispatcher.php"> | ||
<DeprecatedMethod> | ||
<code><![CDATA[complete]]></code> | ||
<code><![CDATA[fail]]></code> | ||
<code><![CDATA[fail]]></code> | ||
</DeprecatedMethod> | ||
</file> | ||
<file src="src/Tcp/Interceptor/RegistryInterface.php"> | ||
<DeprecatedInterface> | ||
<code><![CDATA[TInterceptor|TLegacyInterceptor]]></code> | ||
<code><![CDATA[array<CoreInterceptorInterface|InterceptorInterface>]]></code> | ||
</DeprecatedInterface> | ||
</file> | ||
<file src="src/Tcp/Server.php"> | ||
<DeprecatedClass> | ||
<code><![CDATA[CompatiblePipelineBuilder::class]]></code> | ||
</DeprecatedClass> | ||
<PossiblyInvalidArgument> | ||
<code><![CDATA[$this->interceptors->getInterceptors($server)]]></code> | ||
</PossiblyInvalidArgument> | ||
</file> | ||
</files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.