Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Bellangelo/phpstan-require-file-exists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpstan-require-file-exists

UPDATE: This rule has been merged into PHPStan itself. Here is the PR: phpstan/phpstan-src#3294

Weirdly enough, PHPStan does not check if a file exists when used in a require or include statement. This is a PHPStan rule that tries to do exactly that.

Installation

composer require --dev bellangelo/phpstan-require-file-exists

Development

For local development and testing, composer.json contains several commands that you can run.

  • composer run tests - runs the PHPUnit tests.
  • composer run phpstan - runs PHPStan on the src and tests directories.
  • composer run phpcs - runs PHP CodeSniffer on the src and tests directories.
  • composer run phpcs:fix - runs PHP CodeSniffer on the src and tests directories and tries to fix the issues.

About

This rule has been merged into PHPStan itself. Here is the PR: phpstan/phpstan-src#3294

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages