Skip to content

Commit

Permalink
make phpstan extension
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 16, 2020
1 parent fe938ef commit c471f27
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 73 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ A PHPStan extension is available and provides the following features:
- Provides correct return type for `TranslatableInterface::translate()`
- Provides correct return type for `TranslationInterface::getTranslatable()`

Include `extension.neon` in your project's PHPStan config:
Include `phpstan-extension.neon` in your project's PHPStan config:
```yaml
# phpstan.neon
includes:
- vendor/knplabs/doctrine-behaviors/extension.neon
- vendor/knplabs/doctrine-behaviors/phpstan-extension.neon
```
## 3 Steps to Contribute
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
- extension.neon
- phpstan-extension.neon
- vendor/symplify/phpstan-extensions/config/config.neon
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
Expand Down
3 changes: 2 additions & 1 deletion tests/ORM/TreeNodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Iterator;
use Knp\DoctrineBehaviors\Contract\Entity\TreeNodeInterface;
use Knp\DoctrineBehaviors\Exception\TreeException;
use Knp\DoctrineBehaviors\Tests\AbstractBehaviorTestCase;
use Knp\DoctrineBehaviors\Tests\Fixtures\Entity\TreeNodeEntity;
use Knp\DoctrineBehaviors\Tests\Fixtures\Repository\TreeNodeRepository;
Expand Down Expand Up @@ -203,7 +204,7 @@ public function testArrayAccess(): void

public function testTestsetChildNodeOfWithoutId(): void
{
$this->expectException(LogicException::class);
$this->expectException(TreeException::class);
$this->expectExceptionMessage('You must provide an id for this node if you want it to be part of a tree.');

$this->buildNode(['setMaterializedPath' => '/0/1'])->setChildNodeOf(
Expand Down
69 changes: 0 additions & 69 deletions upgrade/rector/doctrine-behaviors-20.yaml

This file was deleted.

0 comments on commit c471f27

Please sign in to comment.