Thomas Gnandt

Results 6 comments of Thomas Gnandt

Just as an FYI for anyone who, like me stumbles upon this issue: The error may also be displayed, if the test fails without a stacktrace. This happend to me...

As a workaroung, I'm using https://github.com/slevomat/coding-standard#slevomatcodingstandardcontrolstructuresdisallowyodacomparisonrequireyodacomparison- which can handle this and also brings an auto-fixer.

After changing the `functionMap` I had to completely rewrite the rule to only check `Stringable` objects, since `intval` and `floatval` accept `string`, but no objects.

> We should be compatible with Psalm's stub I looked into this and as far as I can tell, yes there needs to be a discussion. Both [Psalm](https://github.com/vimeo/psalm/blob/36d5a2a83c1d7b3e2aca1cfe9e9dcc916619e962/stubs/CoreGenericIterators.phpstub#L105-L107) and [PHPStan](https://github.com/phpstan/phpstan-src/blob/eeedd1cbcf45a6c248ed92621ab7faff4172df8d/stubs/iterable.stub#L181-L183)...

On further testing I realized that changing `OuterIterator` leads to similar issues as discussed in https://github.com/phpstan/phpstan/issues/6829, because it assumes that the `Iterator` returned from `getInnerIterator` is the same as the...

@twbartel Is there an issue open for this in the parser project? I looked for one and couldn't find it. Did I miss it or has no issue been opened...