Skip to content

Commit

Permalink
Reproduce problem with attribute on PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 19, 2022
1 parent 7ca1138 commit 8f75bed
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/other-tests.yml
Expand Up @@ -132,6 +132,9 @@ jobs:
cd e2e/api-platform-trait
composer install
../../phpstan analyse -l 9 test.php
- |
cd e2e/attribute-74
../../phpstan analyse -l 9 test.php -c test.neon
include:
- php-version: 8.0
ini-values: memory_limit=256M
Expand Down
2 changes: 2 additions & 0 deletions e2e/attribute-74/test.neon
@@ -0,0 +1,2 @@
parameters:
phpVersion: 70400
13 changes: 13 additions & 0 deletions e2e/attribute-74/test.php
@@ -0,0 +1,13 @@
<?php declare(strict_types = 1);

class MyDateTime extends DateTime
{
/**
* @return MyDateTime|false
*/
#[ReturnTypeWillChange]
public function modify($modifier)
{
return false;
}
}

0 comments on commit 8f75bed

Please sign in to comment.