Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 0 additions & 114 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2082,120 +2082,6 @@ parameters:
count: 1
path: public/quickref.php

-
message: '#^Function releases\\php80\\message\(\) has parameter \$code with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.0/common.php

-
message: '#^Function releases\\php80\\message\(\) has parameter \$language with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.0/common.php

-
message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: public/releases/8.0/common.php

-
message: '#^Function releases\\php81\\message\(\) has parameter \$code with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.1/common.php

-
message: '#^Function releases\\php81\\message\(\) has parameter \$language with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.1/common.php

-
message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: public/releases/8.1/common.php

-
message: '#^Function releases\\php82\\message\(\) has parameter \$code with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.2/common.php

-
message: '#^Function releases\\php82\\message\(\) has parameter \$language with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.2/common.php

-
message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: public/releases/8.2/common.php

-
message: '#^Function releases\\php83\\message\(\) has parameter \$code with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.3/common.php

-
message: '#^Function releases\\php83\\message\(\) has parameter \$language with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.3/common.php

-
message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: public/releases/8.3/common.php

-
message: '#^Function releases\\php84\\message\(\) has parameter \$code with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.4/common.php

-
message: '#^Function releases\\php84\\message\(\) has parameter \$language with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.4/common.php

-
message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: public/releases/8.4/common.php

-
message: '#^Function releases\\php85\\message\(\) has parameter \$code with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.5/common.php

-
message: '#^Function releases\\php85\\message\(\) has parameter \$interpolations with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: public/releases/8.5/common.php

-
message: '#^Function releases\\php85\\message\(\) has parameter \$language with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: public/releases/8.5/common.php

-
message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: public/releases/8.5/common.php

-
message: '#^Function formatDate\(\) has no return type specified\.$#'
identifier: missingType.return
Expand Down
6 changes: 3 additions & 3 deletions public/releases/8.0/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
function common_header(string $description): void {
global $MYSITE, $lang;

$meta_image_path = \htmlspecialchars(
\filter_var($MYSITE . 'images/php8/php_8_released.png', \FILTER_VALIDATE_URL));
$meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_released.png', \FILTER_VALIDATE_URL);
$meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url);
$meta_description = \htmlspecialchars($description);

$languages = [];
Expand Down Expand Up @@ -56,7 +56,7 @@ function common_header(string $description): void {
]);
}

function message($code, $language = 'en'): string
function message(string $code, string $language = 'en'): string
{
$original = require __DIR__ . '/languages/en.php';
if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) {
Expand Down
6 changes: 3 additions & 3 deletions public/releases/8.1/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
function common_header(string $description): void {
global $MYSITE, $lang;

$meta_image_path = \htmlspecialchars(
\filter_var($MYSITE . 'images/php8/php_8_1_released.png', \FILTER_VALIDATE_URL));
$meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_1_released.png', \FILTER_VALIDATE_URL);
$meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url);
$meta_description = \htmlspecialchars($description);

$languages = [];
Expand Down Expand Up @@ -52,7 +52,7 @@ function common_header(string $description): void {
]);
}

function message($code, $language = 'en'): string
function message(string $code, string $language = 'en'): string
{
$original = require __DIR__ . '/languages/en.php';
if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) {
Expand Down
6 changes: 3 additions & 3 deletions public/releases/8.2/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
function common_header(string $description): void {
global $MYSITE, $lang;

$meta_image_path = \htmlspecialchars(
\filter_var($MYSITE . 'images/php8/php_8_2_released.png', \FILTER_VALIDATE_URL));
$meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_2_released.png', \FILTER_VALIDATE_URL);
$meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url);
$meta_description = \htmlspecialchars($description);

$languages = [];
Expand Down Expand Up @@ -52,7 +52,7 @@ function common_header(string $description): void {
]);
}

function message($code, $language = 'en'): string
function message(string $code, string $language = 'en'): string
{
$original = require __DIR__ . '/languages/en.php';
if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) {
Expand Down
6 changes: 3 additions & 3 deletions public/releases/8.3/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
function common_header(string $description): void {
global $MYSITE, $lang;

$meta_image_path = \htmlspecialchars(
\filter_var($MYSITE . 'images/php8/php_8_3_released.png', \FILTER_VALIDATE_URL));
$meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_3_released.png', \FILTER_VALIDATE_URL);
$meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url);
$meta_description = \htmlspecialchars($description);

$languages = [];
Expand Down Expand Up @@ -52,7 +52,7 @@ function common_header(string $description): void {
]);
}

function message($code, $language = 'en'): string
function message(string $code, string $language = 'en'): string
{
$original = require __DIR__ . '/languages/en.php';
if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) {
Expand Down
6 changes: 3 additions & 3 deletions public/releases/8.4/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
function common_header(string $description): void {
global $MYSITE, $lang;

$meta_image_path = \htmlspecialchars(
\filter_var($MYSITE . 'images/php8/php_8_4_released.png', \FILTER_VALIDATE_URL));
$meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_4_released.png', \FILTER_VALIDATE_URL);
$meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url);
$meta_description = \htmlspecialchars($description);

$languages = [];
Expand Down Expand Up @@ -54,7 +54,7 @@ function common_header(string $description): void {
]);
}

function message($code, $language = 'en'): string
function message(string $code, string $language = 'en'): string
{
$original = require __DIR__ . '/languages/en.php';
if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) {
Expand Down
9 changes: 6 additions & 3 deletions public/releases/8.5/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
function common_header(string $description): void {
global $MYSITE, $lang;

$meta_image_path = \htmlspecialchars(
\filter_var($MYSITE . 'images/php8/php_8_5_released.png', \FILTER_VALIDATE_URL));
$meta_image_url = \filter_var($MYSITE . 'images/php8/php_8_5_released.png', \FILTER_VALIDATE_URL);
$meta_image_path = $meta_image_url === false ? '' : \htmlspecialchars($meta_image_url);
$meta_description = \htmlspecialchars($description);

$languages = [];
Expand Down Expand Up @@ -54,7 +54,10 @@ function common_header(string $description): void {
]);
}

function message($code, $language = 'en', array $interpolations = []): string
/**
* @param array<int|string, string> $interpolations
*/
function message(string $code, string $language = 'en', array $interpolations = []): string
{
$original = require __DIR__ . '/languages/en.php';
if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) {
Expand Down
Loading