Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpstan Beberlei Assert Laravel Package

phpstan/phpstan-beberlei-assert

PHPStan extension for beberlei/assert. Adds improved static analysis and type inference for Assert::that and related assertions, helping PHPStan understand refined types after checks and reducing false positives in codebases using beberlei/assert.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature: Enables PHPStan to correctly infer types from beberlei/assert calls, transforming runtime checks into static type guarantees for precise analysis.
  • Roadmap: Aligns with long-term goals of reducing technical debt and improving code maintainability by enforcing explicit type contracts in high-risk code paths (e.g., API payloads, data processing).
  • Build vs Buy: A lightweight, MIT-licensed solution that eliminates the need to develop custom PHPStan rules for beberlei/assert—saving engineering resources while avoiding maintenance overhead.
  • Use Cases: Critical for projects with complex input validation (e.g., third-party integrations, user-submitted data) where false positives in static analysis currently undermine developer trust in tooling.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log