Skip to content

Commit

Permalink
Replaced some requirements with conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
lookyman authored and ondrejmirtes committed May 31, 2018
1 parent 920fd64 commit 4d59abd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": "~7.1",
"phpstan/phpstan": "^0.10",
"dibi/dibi": "~3.0"
"nikic/php-parser": "^4.0"
},
"require-dev": {
"consistence/coding-standard": "^3.0.1",
Expand All @@ -23,7 +23,11 @@
"phpstan/phpstan-strict-rules": "^0.10",
"phpunit/phpunit": "^7.0",
"satooshi/php-coveralls": "^1.0",
"slevomat/coding-standard": "^4.5.2"
"slevomat/coding-standard": "^4.5.2",
"dibi/dibi": "~3.0"
},
"conflict": {
"dibi/dibi": "<3.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/Dibi/DibiFluentClassReflectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DibiFluentClassReflectionExtension implements MethodsClassReflectionExtens

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

public function getMethod(ClassReflection $classReflection, string $methodName): MethodReflection
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/Dibi/DibiFluentMethodReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getVariants(): array
new FunctionVariant(
[],
true,
new ObjectType(\Dibi\Fluent::class)
new ObjectType('Dibi\Fluent')
),
];
}
Expand Down

0 comments on commit 4d59abd

Please sign in to comment.