Skip to content

Commit

Permalink
Fixing PHPStan for WeakRef
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Jul 12, 2020
1 parent 322bb8c commit 415d7da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ matrix:
- postgresql
- php: 7.3
env: PREFER_LOWEST="" DB=mysql NO_WEAKREF=1
- php: "7.4snapshot"
env: PREFER_LOWEST="" DB=mysql NO_WEAKREF=1
allow_failures:
- php: 7.3 # 7.3 allowed to fail due to an issue with greenlion/PHP-SQL-Parser: https://github.com/greenlion/PHP-SQL-Parser/pull/304
- php: "7.4snapshot"
- php: 7.1
env: PREFER_LOWEST="" DB=oracle PHPUNITFILE="-c phpunit.oracle.xml"
- php: 7.1
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ parameters:
- "/Parameter #. \\$types of method Doctrine\\\\DBAL\\\\Connection::.*() expects array<int|string>, array<int, Doctrine\\\\DBAL\\\\Types\\\\Type> given./"
- "#Method TheCodingMachine\\\\TDBM\\\\Schema\\\\ForeignKey::.*() should return .* but returns array<string>|string.#"
- '#Method TheCodingMachine\\TDBM\\NativeWeakrefObjectStorage::get\(\) should return TheCodingMachine\\TDBM\\DbRow\|null but returns object\|null.#'
-
message: '#WeakRef#'
path: src/WeakrefObjectStorage.php
-
message: '#Result of && is always false.#'
path: src/Test/Dao/Bean/Generated/ArticleBaseBean.php
Expand Down

0 comments on commit 415d7da

Please sign in to comment.