Merge pull request #7541 from nextcloud/enh/noid/use-strict-types-in-php

add `declare(strict_types=1);` to all php files
This commit is contained in:
Simon L.
2026-02-13 10:54:23 +01:00
committed by GitHub
26 changed files with 30 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
<?php <?php
declare(strict_types=1);
$domain = $_GET['domain'] ?? ''; $domain = '';
if (isset($_GET['domain']) && is_string($_GET['domain'])) {
$domain = $_GET['domain'];
}
if (!str_contains($domain, '.')) { if (!str_contains($domain, '.')) {
http_response_code(400); http_response_code(400);

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Auth; namespace AIO\Auth;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Auth; namespace AIO\Auth;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Container; namespace AIO\Container;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO; namespace AIO;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Controller; namespace AIO\Controller;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Controller; namespace AIO\Controller;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Controller; namespace AIO\Controller;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Data; namespace AIO\Data;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Data; namespace AIO\Data;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Data; namespace AIO\Data;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO; namespace AIO;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Docker; namespace AIO\Docker;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Docker; namespace AIO\Docker;

View File

@@ -1,5 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Docker; namespace AIO\Docker;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Middleware; namespace AIO\Middleware;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Twig; namespace AIO\Twig;

View File

@@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1);
namespace AIO\Twig; namespace AIO\Twig;