Back

11:11

Working at Pinkary changed my coding habits:

I now write code without constantly checking Pint, Rector, PHPStan (Level 9), type coverage, or tests with code coverage. 🀞

Yet, 90% of the time, everything passes flawlessly on the first try. 🀌

4 β€’ β€’

1K

β€’
β€’
  • No matching results...
  • Searching...

/ 1000

Poll Options

A big thanks to you boss 🀌 πŸ’…

β€’ β€’

280

β€’
β€’

Any good resource on learning phpstan for Laravel? Seems like there’s nothing out there.

1 β€’ β€’

414

β€’
β€’

To add to this, use the larastan/larastan package to help it understand Laravel better.

1 β€’ β€’

103

β€’
β€’

yeah, Thanks for informing.

β€’ β€’

91

β€’
β€’

I read through the docs but I kept running into issues with Laravel specific magic stuff, especially on higher levels

I’ll be combing through the Pinkary code. I bet that’ll be the better β€œdocs”.

1 β€’ β€’

161

β€’
β€’

One of the Laravel issues I've found is with

->withPivot

in many-to-many relationships. There doesn't seem to be a type safe way of accessing `->pivot`

phpstan shows the following error
Access to an undefined property App\Models\Comment::$pivot.

β€’ β€’

124

β€’
β€’

many thanks

β€’ β€’

327

β€’
β€’

That's awsome. I will also startπŸ‘Ύ

β€’ β€’

306

β€’
β€’