2017 © Pedro Peláez
 

project php-add-strict-types-line

Command-line script for adding `declare(strict_types=1);` line to PHP files

image

daaarkling/php-add-strict-types-line

Command-line script for adding `declare(strict_types=1);` line to PHP files

  • Sunday, March 11, 2018
  • by Daaarkling
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP add-strict-types-line

Command-line script for adding declare(strict_types=1); line to PHP files, (*1)

It uses native PHP tokenizer, so conversion is safe. It adds the line only to files where declare(strict_types=1); was not found., (*2)

Usage

To convert all *.php and *.phpt files in whole directory recursively or to convert a single file use:, (*3)

php add-line.php <directory | file>

The Versions

11/03 2018

dev-master

9999999-dev

Command-line script for adding `declare(strict_types=1);` line to PHP files

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

14/02 2018

1.0

1.0.0.0

Command-line script for adding `declare(strict_types=1);` line to PHP files

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6