Skip to content

Commit 7beee3d

Browse files
committed
Reproduce Phalcon reflection issue
1 parent b7382f4 commit 7beee3d

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/other-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,13 @@ jobs:
234234
cd e2e/undiscoverable-symbols-3
235235
composer install
236236
../../phpstan
237+
- php-version: 7.4
238+
extensions: phalcon4
239+
ini-values: memory_limit=256M
240+
operating-system: ubuntu-latest
241+
script: |
242+
cd e2e/phalcon-null
243+
../../phpstan
237244
steps:
238245
- name: "Checkout"
239246
uses: actions/checkout@v3

e2e/phalcon-null/phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
paths:
3+
- test.php
4+
level: 5
5+
reportMaybesInMethodSignatures: true

e2e/phalcon-null/test.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Userland\Library\Forms;
6+
7+
use Phalcon\Forms\Element\ElementInterface;
8+
9+
class TextElement implements ElementInterface {
10+
public function render(array $attributes = []): string {
11+
return '<input type="text">';
12+
}
13+
}

0 commit comments

Comments
 (0)