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
<?php
<?php declare(strict_types=1);
/**
* PrivateBin
*

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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