Zebulan Stanphill

Results 30 comments of Zebulan Stanphill

It's worth noting that PHPStan has [local type aliases](https://phpstan.org/writing-php-code/phpdoc-types#local-type-aliases) which work pretty much identically to the equivalent in Psalm. Presumably, adding support for one would make it easy to support...

@ondrejmirtes To fix the example in the OP would involve fixing #4703. I figure array intersections should probably work the same way as in TypeScript?

https://www.typescriptlang.org/docs/handbook/2/objects.html#intersection-types ```ts type A = { foo: string bar: number | string } type B = { bar: number baz: string } type C = A & B // C...

Array unions are currently collapsed improperly. See #3801.

Pinging @alex-cory. This is still an issue: https://www.npmjs.com/package/use-invariant It's particularly odd because the version of the package under that name is 2 years out-of-date.

I'm having similar issues. I'll try doing a `git push ...` in the terminal, then be prompted: "The extension 'GitHub' wants to sign in using GitHub." I choose "Allow", and...

Current markup: ```html ITEM NAME ``` Suggested markup: ```html ITEM NAME ``` (The `` would change to a different `` element depending on which level was set on the `AccordionItemHeading`...

Support for `array` as an `@template` type bound was only very recently added to PHPStan in https://github.com/phpstan/phpstan-src/pull/673, and the current PHPStan release (0.12.99), was made a few days before that...

@tjveldhuizen [PHPStan 1.0](https://phpstan.org/blog/phpstan-1-0-released) just came out, and it includes support for `@template T of array`, so once this project updates its PHPStan requirement, this PR can be rebased and should...

Just noting that `Hashable#equals()` lacking a defined parameter type prevents the method from being used with PHPUnit's [`assertObjectEquals()`](https://phpunit.readthedocs.io/en/9.5/assertions.html#assertobjectequals). As stated in its documentation: >Please note: > - A method with...