Skip to content

Commit

Permalink
[demo] Mute PHP deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yannoff committed Feb 9, 2023
1 parent 9e921ea commit a85b986
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ First the application script, the script that will be invoked using `php bin/app
#!/usr/bin/env php
<?php
// bin/app.php

// Mute PHP deprecation warnings & notices
error_reporting(E_ERROR);

require __DIR__ . '/../vendor/autoload.php';

use Yannoff\Component\Console\Application;
Expand Down
3 changes: 3 additions & 0 deletions bin/demo
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
* file that was distributed with this source code.
*/

// Mute PHP deprecation warnings & notices
error_reporting(E_ERROR);

require __DIR__ . '/../vendor/autoload.php';

use Yannoff\Component\Console\Application;
Expand Down

0 comments on commit a85b986

Please sign in to comment.