Skip to content

PHP7 tool for easy add/remove "declare(strict_types=1)"

License

Notifications You must be signed in to change notification settings

wujunze/declare-strict-easy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP7 tool for easy add/remove "declare(strict_types=1)"

Build Status Latest Stable Version Latest Unstable Version Total Downloads

Enable strict typing in your project with one command. Based on PCRE and supports PSR-2.

WARNING: before run command ensure that you have backup of your files!!!

Usage

Install via composer

composer require --dev wujunze/declare-strict-easy

Run command to add "declare(strict_types=1)" in all files in specified folders

bin/declare_strict_types add --exclude=bar/baz/bah foo/directory bar/baz

Also supports remove mode

bin/declare_strict_types remove foo/directory

PS

You may prefer PHP-CS-Fixer with "declare_strict_types" rule!

About

PHP7 tool for easy add/remove "declare(strict_types=1)"

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages