samlitowitz / no-ternary
PHPStan rule to disallow the use of ternary operators
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/samlitowitz/no-ternary
Requires
- phpstan/phpstan: 0.11.5
- phpunit/phpunit: 7.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- jakub-onderka/php-parallel-lint: ^1.0
- phpmd/phpmd: ^2.6
- phpro/grumphp: ^0.15.0
- povils/phpmnd: ^2.1
- sensiolabs/security-checker: ^5.0
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2025-10-12 21:19:26 UTC
README
Usage
To use these rules, require it via Composer
composer require samlitowitz/no-ternary --dev
Include rules.neon in your project's PHPStan config
includes:
- vendor/samlitowitz/no-ternary/rules.neon