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;