Maarten Paauw
maartenpaauw.bsky.social
Maarten Paauw
@maartenpaauw.bsky.social
Just learned about the "@phpstan-assert-if-true" PHPStan annotation. Useful for creating custom type-checking functions that PHPStan can understand and use for type narrowing.

#PHP #PHPStan
July 8, 2025 at 7:21 AM
PHPStorm String Manipulation plugin makes refactoring easy.

Convert PHPUnit test from: testUserCanCreateAccount() → test_user_can_create_account()

#php #phpunit
June 30, 2025 at 9:54 AM
Just refactored the PHP plan constructor with validation for all configuration preferences. Now developers get instant and clear feedback when setting up their billing plans!

#filamentphp #cashier #stripe #laravel
June 29, 2025 at 6:45 PM
PHP enum limitation: MCP protocol versions are 2024-11-05, 2025-06-18 etc. Would be perfect as enum cases, but PHP doesn't allow integers as case names and 2025_06_18 isn't valid syntax. Simple solution: prefix with v → v2025_06_18. Clean and readable!
June 26, 2025 at 7:16 AM
Fun discovery while mapping JSON-RPC error codes to PHP enums: you can use negative integers as values in integer backed enums! Did you know this was possible?

#php #mcp
June 25, 2025 at 12:01 PM
🎉 Filament v4 support is here! Just released a pre-release of my Stripe package for @filamentphp.com. Final version coming soon after some refactoring, but would love feedback on the RC!

#FilamentPHP #Stripe #Laravel

github.com/maartenpaauw...
GitHub - maartenpaauw/filament-cashier-billing-provider: Integrate Laravel Cashier Stripe support into Filament's multi-tenant panels.
Integrate Laravel Cashier Stripe support into Filament's multi-tenant panels. - maartenpaauw/filament-cashier-billing-provider
github.com
June 25, 2025 at 8:48 AM