enable strict types in PHP

This commit is contained in:
El RIDO 2024-06-04 07:13:55 +02:00
parent b9d24b74b3
commit cebc9acce6
49 changed files with 50 additions and 50 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,5 +1,5 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *
@ -413,7 +413,7 @@ class ConfigurationTestGenerator
private function _getHeader() private function _getHeader()
{ {
return <<<'EOT' return <<<'EOT'
<?php <?php declare(strict_types=1);
/** /**
* DO NOT EDIT: This file is generated automatically using configGenerator.php * DO NOT EDIT: This file is generated automatically using configGenerator.php
*/ */

View file

@ -1,5 +1,5 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,5 +1,5 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* VizHash_GD * VizHash_GD
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* PrivateBin * PrivateBin
* *

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use Google\Cloud\Core\Exception\BadRequestException; use Google\Cloud\Core\Exception\BadRequestException;
use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Core\Exception\NotFoundException;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Configuration; use PrivateBin\Configuration;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Controller; use PrivateBin\Controller;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PrivateBin\Data\Database; use PrivateBin\Data\Database;
use PrivateBin\Persistence\ServerSalt; use PrivateBin\Persistence\ServerSalt;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\HttpHandler\HttpHandlerFactory;
use GuzzleHttp\Client; use GuzzleHttp\Client;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Controller; use PrivateBin\Controller;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Data\Filesystem; use PrivateBin\Data\Filesystem;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Auth\HttpHandler\HttpHandlerFactory;
use GuzzleHttp\Client; use GuzzleHttp\Client;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Filter; use PrivateBin\Filter;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\FormatV2; use PrivateBin\FormatV2;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\I18n; use PrivateBin\I18n;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Controller; use PrivateBin\Controller;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Data\Database; use PrivateBin\Data\Database;
use PrivateBin\Data\Filesystem; use PrivateBin\Data\Filesystem;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use Identicon\Identicon; use Identicon\Identicon;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Data\Filesystem; use PrivateBin\Data\Filesystem;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Data\Filesystem; use PrivateBin\Data\Filesystem;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Data\Filesystem; use PrivateBin\Data\Filesystem;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Request; use PrivateBin\Request;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\I18n; use PrivateBin\I18n;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Data\Filesystem; use PrivateBin\Data\Filesystem;

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PrivateBin\Configuration; use PrivateBin\Configuration;