error_reporting() ==> -1

blurb



Objective:

PHP 7.? introduced "declare(strict_types=1);" and fails fast even when PHP warnings are encountered.

Example: One
<?php
  error_reporting(-1); // maximum errors
  ini_set( 'display_errors', 1 );

  // NO ERRORS OR WARNINGS DISPLAYED 
 

Example: Two - using declare('strict_types=1);
<?php
  declare(strict_types=1);
  error_reporting(-1); // maximum errors
  ini_set( 'display_errors', 1 );

  // TypeError
  // ini_set() expects parameter 2 to be string, integer given 

Adding PHP declare(strict_types=1); to CI4-Dev

7.2.10-0ubuntu0.18.04.1
Wonderful place for a footer