Skip to content

Commit 4d59abd

Browse files
lookymanondrejmirtes
authored andcommitted
Replaced some requirements with conflicts
1 parent 920fd64 commit 4d59abd

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"php": "~7.1",
1414
"phpstan/phpstan": "^0.10",
15-
"dibi/dibi": "~3.0"
15+
"nikic/php-parser": "^4.0"
1616
},
1717
"require-dev": {
1818
"consistence/coding-standard": "^3.0.1",
@@ -23,7 +23,11 @@
2323
"phpstan/phpstan-strict-rules": "^0.10",
2424
"phpunit/phpunit": "^7.0",
2525
"satooshi/php-coveralls": "^1.0",
26-
"slevomat/coding-standard": "^4.5.2"
26+
"slevomat/coding-standard": "^4.5.2",
27+
"dibi/dibi": "~3.0"
28+
},
29+
"conflict": {
30+
"dibi/dibi": "<3.0"
2731
},
2832
"autoload": {
2933
"psr-4": {

src/Reflection/Dibi/DibiFluentClassReflectionExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DibiFluentClassReflectionExtension implements MethodsClassReflectionExtens
1111

1212
public function hasMethod(ClassReflection $classReflection, string $methodName): bool
1313
{
14-
return $classReflection->getName() === \Dibi\Fluent::class;
14+
return $classReflection->getName() === 'Dibi\Fluent';
1515
}
1616

1717
public function getMethod(ClassReflection $classReflection, string $methodName): MethodReflection

src/Reflection/Dibi/DibiFluentMethodReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getVariants(): array
6262
new FunctionVariant(
6363
[],
6464
true,
65-
new ObjectType(\Dibi\Fluent::class)
65+
new ObjectType('Dibi\Fluent')
6666
),
6767
];
6868
}

0 commit comments

Comments
 (0)