Skip to content

Commit

Permalink
chore: apply updated php-cs-fixer linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Mar 4, 2024
1 parent bfc84e9 commit 312c7cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Implementations/Psr17/UploadedFileFactories.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function add(CandidateEntity $candidate): void
*/
public static function allCandidates(): CandidatesCollection
{
if (self::$extendedCandidates instanceof \PsrDiscovery\Collections\CandidatesCollection) {
if (self::$extendedCandidates instanceof CandidatesCollection) {
return self::$extendedCandidates;
}

Expand All @@ -48,7 +48,7 @@ public static function allCandidates(): CandidatesCollection
*/
public static function candidates(): CandidatesCollection
{
if (self::$candidates instanceof \PsrDiscovery\Collections\CandidatesCollection) {
if (self::$candidates instanceof CandidatesCollection) {
return self::$candidates;
}

Expand Down Expand Up @@ -128,7 +128,7 @@ public static function candidates(): CandidatesCollection
*/
public static function discover(): ?UploadedFileFactoryInterface

Check failure on line 129 in src/Implementations/Psr17/UploadedFileFactories.php

View workflow job for this annotation

GitHub Actions / psalm

MixedInferredReturnType

src/Implementations/Psr17/UploadedFileFactories.php:129:40: MixedInferredReturnType: Could not verify return type 'Psr\Http\Message\UploadedFileFactoryInterface|null' for PsrDiscovery\Implementations\Psr17\UploadedFileFactories::discover (see https://psalm.dev/047)
{
if (self::$using instanceof \Psr\Http\Message\UploadedFileFactoryInterface) {
if (self::$using instanceof UploadedFileFactoryInterface) {
return self::$using;
}

Expand Down Expand Up @@ -156,7 +156,7 @@ public static function set(CandidatesCollection $candidates): void

public static function singleton(): ?UploadedFileFactoryInterface
{
if (self::$using instanceof \Psr\Http\Message\UploadedFileFactoryInterface) {
if (self::$using instanceof UploadedFileFactoryInterface) {
return self::$using;
}

Expand Down
8 changes: 4 additions & 4 deletions src/Implementations/Psr17/UriFactories.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function add(CandidateEntity $candidate): void
*/
public static function allCandidates(): CandidatesCollection
{
if (self::$extendedCandidates instanceof \PsrDiscovery\Collections\CandidatesCollection) {
if (self::$extendedCandidates instanceof CandidatesCollection) {
return self::$extendedCandidates;
}

Expand All @@ -48,7 +48,7 @@ public static function allCandidates(): CandidatesCollection
*/
public static function candidates(): CandidatesCollection
{
if (self::$candidates instanceof \PsrDiscovery\Collections\CandidatesCollection) {
if (self::$candidates instanceof CandidatesCollection) {
return self::$candidates;
}

Expand Down Expand Up @@ -128,7 +128,7 @@ public static function candidates(): CandidatesCollection
*/
public static function discover(): ?UriFactoryInterface

Check failure on line 129 in src/Implementations/Psr17/UriFactories.php

View workflow job for this annotation

GitHub Actions / psalm

MixedInferredReturnType

src/Implementations/Psr17/UriFactories.php:129:40: MixedInferredReturnType: Could not verify return type 'Psr\Http\Message\UriFactoryInterface|null' for PsrDiscovery\Implementations\Psr17\UriFactories::discover (see https://psalm.dev/047)
{
if (self::$using instanceof \Psr\Http\Message\UriFactoryInterface) {
if (self::$using instanceof UriFactoryInterface) {
return self::$using;
}

Expand Down Expand Up @@ -156,7 +156,7 @@ public static function set(CandidatesCollection $candidates): void

public static function singleton(): ?UriFactoryInterface
{
if (self::$using instanceof \Psr\Http\Message\UriFactoryInterface) {
if (self::$using instanceof UriFactoryInterface) {
return self::$using;
}

Expand Down

0 comments on commit 312c7cc

Please sign in to comment.