Skip to content

Commit 539a7ee

Browse files
committed
Open 0.12-dev
1 parent 4341221 commit 539a7ee

File tree

5 files changed

+47
-8
lines changed

5 files changed

+47
-8
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,5 @@ before_script:
77
- composer install
88
script:
99
- vendor/bin/phing
10-
- >
11-
wget https://github.com/maglnet/ComposerRequireChecker/releases/download/0.2.1/composer-require-checker.phar
12-
&& php composer-require-checker.phar check composer.json
1310
after_script:
1411
- php vendor/bin/coveralls -v

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
>
8989
<arg value="analyse"/>
9090
<arg value="-l"/>
91-
<arg value="7"/>
91+
<arg value="8"/>
9292
<arg value="-c"/>
9393
<arg path="phpstan.neon"/>
9494
<arg path="src"/>

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"prefer-stable": true,
88
"extra": {
99
"branch-alias": {
10-
"dev-master": "0.11-dev"
10+
"dev-master": "0.12-dev"
1111
},
1212
"phpstan": {
1313
"includes": [
@@ -17,16 +17,16 @@
1717
},
1818
"require": {
1919
"php": "~7.1",
20-
"phpstan/phpstan": "^0.11.4",
20+
"phpstan/phpstan": "^0.12",
2121
"nikic/php-parser": "^4.0"
2222
},
2323
"require-dev": {
2424
"consistence/coding-standard": "^3.0.1",
2525
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
2626
"jakub-onderka/php-parallel-lint": "^1.0",
2727
"phing/phing": "^2.13.0",
28-
"phpstan/phpstan-phpunit": "^0.11",
29-
"phpstan/phpstan-strict-rules": "^0.11",
28+
"phpstan/phpstan-phpunit": "^0.12",
29+
"phpstan/phpstan-strict-rules": "^0.12",
3030
"phpunit/phpunit": "^7.0",
3131
"satooshi/php-coveralls": "^1.0",
3232
"slevomat/coding-standard": "^4.5.2",

src/Reflection/Dibi/DibiFluentMethodReflection.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
use PHPStan\Reflection\ClassReflection;
77
use PHPStan\Reflection\FunctionVariant;
88
use PHPStan\Reflection\MethodReflection;
9+
use PHPStan\TrinaryLogic;
10+
use PHPStan\Type\Generic\TemplateTypeMap;
911
use PHPStan\Type\ObjectType;
1012

1113
class DibiFluentMethodReflection implements MethodReflection
@@ -60,11 +62,48 @@ public function getVariants(): array
6062
{
6163
return [
6264
new FunctionVariant(
65+
TemplateTypeMap::createEmpty(),
66+
TemplateTypeMap::createEmpty(),
6367
[],
6468
true,
6569
new ObjectType('Dibi\Fluent')
6670
),
6771
];
6872
}
6973

74+
public function getDocComment(): ?string
75+
{
76+
return null;
77+
}
78+
79+
public function isDeprecated(): \PHPStan\TrinaryLogic
80+
{
81+
return TrinaryLogic::createNo();
82+
}
83+
84+
public function getDeprecatedDescription(): ?string
85+
{
86+
return null;
87+
}
88+
89+
public function isFinal(): \PHPStan\TrinaryLogic
90+
{
91+
return TrinaryLogic::createNo();
92+
}
93+
94+
public function isInternal(): \PHPStan\TrinaryLogic
95+
{
96+
return TrinaryLogic::createNo();
97+
}
98+
99+
public function getThrowType(): ?\PHPStan\Type\Type
100+
{
101+
return null;
102+
}
103+
104+
public function hasSideEffects(): \PHPStan\TrinaryLogic
105+
{
106+
return TrinaryLogic::createYes();
107+
}
108+
70109
}

tests/Reflection/Dibi/DibiFluentClassReflectionExtensionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ protected function setUp(): void
2020
$this->extension = new DibiFluentClassReflectionExtension();
2121
}
2222

23+
/**
24+
* @return array<array{class-string, bool}>
25+
*/
2326
public function dataHasMethod(): array
2427
{
2528
return [

0 commit comments

Comments
 (0)