Skip to content

Commit 7f48ae7

Browse files
lookymanondrejmirtes
authored andcommitted
Check composer requirements on Travis
1 parent 22c75d9 commit 7f48ae7

8 files changed

+10
-7
lines changed

Diff for: .travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ before_script:
1111
- if [ "$dependencies" = "highest" ]; then composer update --no-interaction; fi;
1212
script:
1313
- vendor/bin/phing
14+
- >
15+
wget https://github.com/maglnet/ComposerRequireChecker/releases/download/0.2.1/composer-require-checker.phar
16+
&& php composer-require-checker.phar check composer.json

Diff for: src/Type/BeberleiAssert/AssertThatAllType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
Type $valueType
2121
)
2222
{
23-
parent::__construct(\Assert\AssertionChain::class);
23+
parent::__construct('Assert\AssertionChain');
2424
$this->valueExpr = $valueExpr;
2525
$this->valueType = $valueType;
2626
}

Diff for: src/Type/BeberleiAssert/AssertThatDynamicMethodReturnTypeExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AssertThatDynamicMethodReturnTypeExtension implements \PHPStan\Type\Dynami
99

1010
public function getClass(): string
1111
{
12-
return \Assert\Assert::class;
12+
return 'Assert\Assert';
1313
}
1414

1515
public function isStaticMethodSupported(\PHPStan\Reflection\MethodReflection $methodReflection): bool

Diff for: src/Type/BeberleiAssert/AssertThatNullOrType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
Type $valueType
2121
)
2222
{
23-
parent::__construct(\Assert\AssertionChain::class);
23+
parent::__construct('Assert\AssertionChain');
2424
$this->valueExpr = $valueExpr;
2525
$this->valueType = $valueType;
2626
}

Diff for: src/Type/BeberleiAssert/AssertThatType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
Type $valueType
2121
)
2222
{
23-
parent::__construct(\Assert\AssertionChain::class);
23+
parent::__construct('Assert\AssertionChain');
2424
$this->valueExpr = $valueExpr;
2525
$this->valueType = $valueType;
2626
}

Diff for: src/Type/BeberleiAssert/AssertTypeSpecifyingExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function setTypeSpecifier(TypeSpecifier $typeSpecifier): void
2424

2525
public function getClass(): string
2626
{
27-
return \Assert\Assertion::class;
27+
return 'Assert\Assertion';
2828
}
2929

3030
public function isStaticMethodSupported(

Diff for: src/Type/BeberleiAssert/AssertionChainDynamicReturnTypeExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AssertionChainDynamicReturnTypeExtension implements \PHPStan\Type\DynamicM
1111

1212
public function getClass(): string
1313
{
14-
return \Assert\AssertionChain::class;
14+
return 'Assert\AssertionChain';
1515
}
1616

1717
public function isMethodSupported(MethodReflection $methodReflection): bool

Diff for: src/Type/BeberleiAssert/AssertionChainTypeSpecifyingExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function setTypeSpecifier(TypeSpecifier $typeSpecifier): void
2323

2424
public function getClass(): string
2525
{
26-
return \Assert\AssertionChain::class;
26+
return 'Assert\AssertionChain';
2727
}
2828

2929
public function isMethodSupported(

0 commit comments

Comments
 (0)