Conversation
|
BTW Tests were moved from |
src/EventQuery.php
Outdated
| * Get the results for this EventQuery as a collection of zero or more Events | ||
| * | ||
| * @internal | ||
| * @return array |
There was a problem hiding this comment.
@acobster Just put list<\Timber\Post> here.
There was a problem hiding this comment.
it means array<int, \Timber\Post>
There was a problem hiding this comment.
Good to know, but array<int, \Timber\Post> is not quite correct, is it? Wouldn't array<\Timber\Post> be better?
|
Unfortunately the return type for |
|
Okay!! |
Still seems to be already an array thus not possible to call that method on it. |
|
I think it's complaining because of the Timber type annotation return $posts ? $posts->to_array() : [];...but PHPStan still considers it possible it will return If posts are found, |
|
I see!! So |
|
Here is the Anti-Problem Laser Gun 🔫 Now it is very easy to resolve these kind of problems. |
All things fixed, even broken greg.php 👍
@acobster Please help me in the last one: