From fa308559bf8bcfca10d7c7ec885532964e65de15 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Tue, 10 Feb 2026 10:03:18 +0100 Subject: [PATCH 1/4] Display conference dates prominently on conferences page and homepage (#1606) Show finalTeaserDate under each conference title on the conferences page and in the homepage sidebar. Replace the outdated $CONF_TEASER array with NewsHandler::getConferences() to access date information. --- conferences/index.php | 17 +++++++++++++++- index.php | 45 ++++++++++++++++++++++++++++++------------- 2 files changed, 48 insertions(+), 14 deletions(-) diff --git a/conferences/index.php b/conferences/index.php index f279da7f07..0179fafa0e 100644 --- a/conferences/index.php +++ b/conferences/index.php @@ -21,6 +21,14 @@ $date = date_format(date_create($entry["updated"] ?? $entry["published"]), 'Y-m-d'); $content .= '
'; $content .= '

' . $entry["title"] . '

'; + + if (!empty($entry["finalTeaserDate"])) { + $confDate = date_create($entry["finalTeaserDate"]); + if ($confDate) { + $content .= '

' . date_format($confDate, 'F j, Y') . '

'; + } + } + $content .= '
'; if (isset($entry["newsImage"])) { @@ -33,7 +41,14 @@ $content .= '
'; $content .= '
'; - $panels .= sprintf('

%s

', $entry["newsImage"]["link"] ?? $link, $entry["title"]); + $panelExtra = ''; + if (!empty($entry["finalTeaserDate"])) { + $confDate = date_create($entry["finalTeaserDate"]); + if ($confDate) { + $panelExtra = ' ' . date_format($confDate, 'M j, Y') . ''; + } + } + $panels .= sprintf('

%s%s

', $entry["newsImage"]["link"] ?? $link, $entry["title"], $panelExtra); } $content .= ""; diff --git a/index.php b/index.php index 9e24fc8c5f..c725471059 100644 --- a/index.php +++ b/index.php @@ -141,25 +141,44 @@ // Print body of home page. echo $content; -// Prepare announcements. -if (is_array($CONF_TEASER)) { +// Prepare announcements from conferences. +$conferences = (new NewsHandler())->getConferences(); +if ($conferences) { + $confsByCategory = []; + foreach ($conferences as $entry) { + foreach ($entry['category'] as $cat) { + if ($cat['term'] === 'conferences' || $cat['term'] === 'cfp') { + $confsByCategory[$cat['term']][] = $entry; + break; + } + } + } $conftype = [ - 'conference' => 'Upcoming conferences', + 'conferences' => 'Upcoming conferences', 'cfp' => 'Conferences calling for papers', ]; $announcements = ""; - foreach ($CONF_TEASER as $category => $entries) { - if ($entries) { - $announcements .= '
'; - $announcements .= ' ' . $conftype[$category] . ''; - $announcements .= '
    '; - foreach (array_slice($entries, 0, 4) as $url => $title) { - $title = preg_replace("'([A-Za-z0-9])([\s:\-,]*?)call for(.*?)$'i", "$1", $title); - $announcements .= "
  • $title
  • "; + foreach ($confsByCategory as $category => $entries) { + $announcements .= '
    '; + $announcements .= ' ' . $conftype[$category] . ''; + $announcements .= '
      '; + foreach (array_slice($entries, 0, 4) as $entry) { + $title = preg_replace("'([A-Za-z0-9])([\s:\-,]*?)call for(.*?)$'i", "$1", $entry['title']); + $link = $entry['newsImage']['link'] ?? preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry['id']); + $dateInfo = ''; + if (!empty($entry['finalTeaserDate'])) { + $confDate = date_create($entry['finalTeaserDate']); + if ($confDate) { + $dateInfo = ' ' . date_format($confDate, 'M j') . ''; + } } - $announcements .= '
    '; - $announcements .= '
    '; + $announcements .= "
  • " . htmlspecialchars($title) . "$dateInfo
  • "; + } + $announcements .= '
'; + if (count($entries) > 4) { + $announcements .= ''; } + $announcements .= '
'; } } else { $announcements = ''; From 966856785e1e2da0779ec4468860b76cb0b377b8 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 20 Jul 2026 11:03:51 +0200 Subject: [PATCH 2/4] chore: re-trigger CI From e819f23c1f1c84c150129fe5158ab6a4dc398926 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 20 Jul 2026 14:40:14 +0200 Subject: [PATCH 3/4] chore: fix phpstan baseline by removing stale CONF_TEASER suppression --- phpstan-baseline.neon | 643 ++++++++++++++++++++++++++++++++++++++++++ phpstan.neon.dist | 14 + 2 files changed, 657 insertions(+) create mode 100644 phpstan-baseline.neon create mode 100644 phpstan.neon.dist diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000000..823d74b322 --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,643 @@ +parameters: + ignoreErrors: + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/1998.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/1999.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2000.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2001.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2002.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2003.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2004.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2005.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2006.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2007.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2008.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2009.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2010.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2011.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2012.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2013.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2014.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2015.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2016.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2017.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2018.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2019.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2020.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2021.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2022.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2023.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2024.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2025.php + + - + message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: archive/2026.php + + - + message: '#^Variable \$cm might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: cal.php + + - + message: '#^Variable \$cy might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: cal.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: conferences/index.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: docs.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: download-docs.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: downloads.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 8 + path: error.php + + - + message: '#^Variable \$userPreferences might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: error.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-debian-cli-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-debian-web-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/linux-docker-cli-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/linux-docker-web-community.php + + - + message: '#^Variable \$multiversion might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-fedora-cli-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-fedora-cli-community.php + + - + message: '#^Variable \$versionNoDot might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-fedora-cli-community.php + + - + message: '#^Variable \$multiversion might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-fedora-web-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-fedora-web-community.php + + - + message: '#^Variable \$versionNoDot might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-fedora-web-community.php + + - + message: '#^Variable \$multiversion might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-redhat-cli-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-redhat-cli-community.php + + - + message: '#^Variable \$versionNoDot might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-redhat-cli-community.php + + - + message: '#^Variable \$multiversion might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-redhat-web-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-redhat-web-community.php + + - + message: '#^Variable \$versionNoDot might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-redhat-web-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-ubuntu-cli-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/linux-ubuntu-web-community.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/osx-docker-cli.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/osx-docker-web.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/osx-homebrew-php.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/osx-homebrew.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/osx-macports.php + + - + message: '#^Variable \$versionNoDot might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/osx-macports.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/windows-chocolatey.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/windows-docker-cli.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/download-instructions/windows-docker-web.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/windows-downloads.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/windows-native.php + + - + message: '#^Variable \$versionNoDot might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/download-instructions/windows-scoop-versions.php + + - + message: '#^Variable \$version might not be defined\.$#' + identifier: variable.undefined + count: 4 + path: include/download-instructions/windows-winget.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/get-download.inc + + - + message: '#^Variable \$CSS might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/header.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 9 + path: include/header.inc + + - + message: '#^Variable \$classes might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/header.inc + + - + message: '#^Variable \$config might not be defined\.$#' + identifier: variable.undefined + count: 6 + path: include/header.inc + + - + message: '#^Variable \$curr might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/header.inc + + - + message: '#^Variable \$lang might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/header.inc + + - + message: '#^Variable \$shorturl might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: include/header.inc + + - + message: '#^Variable \$title might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/header.inc + + - + message: '#^Variable \$userPreferences might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/langchooser.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/layout.inc + + - + message: '#^Variable \$TOC might not be defined\.$#' + identifier: variable.undefined + count: 6 + path: include/layout.inc + + - + message: '#^Variable \$link might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/layout.inc + + - + message: '#^Variable \$title might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: include/layout.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: include/mozopensearch.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 5 + path: include/mozsearch.inc + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 5 + path: index.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: mailing-lists.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: manual-lookup.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: manual/index.php + + - + message: '#^Variable \$N might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: manual/vote-note.php + + - + message: '#^Variable \$LAST_UPDATED might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: mirror-info.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: mirror-info.php + + - + message: '#^Variable \$LAST_UPDATED might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: mirror.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: mirror.php + + - + message: '#^Variable \$MIRRORS might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: my.php + + - + message: '#^Variable \$userPreferences might not be defined\.$#' + identifier: variable.undefined + count: 11 + path: my.php + + - + message: '#^Variable \$QA_CHECKSUM_TYPES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: pre-release-builds.php + + - + message: '#^Variable \$QA_RELEASES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: pre-release-builds.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: quickref.php + + - + message: '#^Variable \$RELEASES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: releases/feed.php + + - + message: '#^Variable \$OLDRELEASES might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: releases/index.php + + - + message: '#^Variable \$RELEASES might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: releases/index.php + + - + message: '#^Variable \$LANG might not be defined\.$#' + identifier: variable.undefined + count: 2 + path: search.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 3 + path: search.php + + - + message: '#^Variable \$COUNTRIES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: submit-event.php + + - + message: '#^Variable \$COUNTRIES might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: thanks.php + + - + message: '#^Variable \$historical_mirrors might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: thanks.php + + - + message: '#^Variable \$MYSITE might not be defined\.$#' + identifier: variable.undefined + count: 19 + path: urlhowto.php diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000000..d924087d33 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,14 @@ +includes: + - phpstan-baseline.neon + +parameters: + level: 3 + paths: + - . + fileExtensions: + - php + - inc + + excludePaths: + analyse: + - vendor/ From 56355017fdf280f27b93c73fd1293f1e424d44b8 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 20 Jul 2026 14:43:12 +0200 Subject: [PATCH 4/4] Revert "chore: fix phpstan baseline by removing stale CONF_TEASER suppression" This reverts commit e819f23c1f1c84c150129fe5158ab6a4dc398926. --- phpstan-baseline.neon | 643 ------------------------------------------ phpstan.neon.dist | 14 - 2 files changed, 657 deletions(-) delete mode 100644 phpstan-baseline.neon delete mode 100644 phpstan.neon.dist diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon deleted file mode 100644 index 823d74b322..0000000000 --- a/phpstan-baseline.neon +++ /dev/null @@ -1,643 +0,0 @@ -parameters: - ignoreErrors: - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/1998.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/1999.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2000.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2001.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2002.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2003.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2004.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2005.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2006.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2007.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2008.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2009.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2010.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2011.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2012.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2013.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2014.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2015.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2016.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2017.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2018.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2019.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2020.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2021.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2022.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2023.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2024.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2025.php - - - - message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: archive/2026.php - - - - message: '#^Variable \$cm might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: cal.php - - - - message: '#^Variable \$cy might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: cal.php - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: conferences/index.php - - - - message: '#^Variable \$LANG might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: docs.php - - - - message: '#^Variable \$LANG might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: download-docs.php - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: downloads.php - - - - message: '#^Variable \$LANG might not be defined\.$#' - identifier: variable.undefined - count: 8 - path: error.php - - - - message: '#^Variable \$userPreferences might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: error.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-debian-cli-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-debian-web-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/linux-docker-cli-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/linux-docker-web-community.php - - - - message: '#^Variable \$multiversion might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-fedora-cli-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-fedora-cli-community.php - - - - message: '#^Variable \$versionNoDot might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-fedora-cli-community.php - - - - message: '#^Variable \$multiversion might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-fedora-web-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-fedora-web-community.php - - - - message: '#^Variable \$versionNoDot might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-fedora-web-community.php - - - - message: '#^Variable \$multiversion might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-redhat-cli-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-redhat-cli-community.php - - - - message: '#^Variable \$versionNoDot might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-redhat-cli-community.php - - - - message: '#^Variable \$multiversion might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-redhat-web-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-redhat-web-community.php - - - - message: '#^Variable \$versionNoDot might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-redhat-web-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-ubuntu-cli-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/linux-ubuntu-web-community.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/osx-docker-cli.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/osx-docker-web.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/osx-homebrew-php.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/osx-homebrew.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/osx-macports.php - - - - message: '#^Variable \$versionNoDot might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/osx-macports.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/windows-chocolatey.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/windows-docker-cli.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/download-instructions/windows-docker-web.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/windows-downloads.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/windows-native.php - - - - message: '#^Variable \$versionNoDot might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/download-instructions/windows-scoop-versions.php - - - - message: '#^Variable \$version might not be defined\.$#' - identifier: variable.undefined - count: 4 - path: include/download-instructions/windows-winget.php - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/get-download.inc - - - - message: '#^Variable \$CSS might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/header.inc - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 9 - path: include/header.inc - - - - message: '#^Variable \$classes might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/header.inc - - - - message: '#^Variable \$config might not be defined\.$#' - identifier: variable.undefined - count: 6 - path: include/header.inc - - - - message: '#^Variable \$curr might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/header.inc - - - - message: '#^Variable \$lang might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/header.inc - - - - message: '#^Variable \$shorturl might not be defined\.$#' - identifier: variable.undefined - count: 3 - path: include/header.inc - - - - message: '#^Variable \$title might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/header.inc - - - - message: '#^Variable \$userPreferences might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/langchooser.inc - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/layout.inc - - - - message: '#^Variable \$TOC might not be defined\.$#' - identifier: variable.undefined - count: 6 - path: include/layout.inc - - - - message: '#^Variable \$link might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/layout.inc - - - - message: '#^Variable \$title might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: include/layout.inc - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: include/mozopensearch.inc - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 5 - path: include/mozsearch.inc - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 5 - path: index.php - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: mailing-lists.php - - - - message: '#^Variable \$LANG might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: manual-lookup.php - - - - message: '#^Variable \$LANG might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: manual/index.php - - - - message: '#^Variable \$N might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: manual/vote-note.php - - - - message: '#^Variable \$LAST_UPDATED might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: mirror-info.php - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: mirror-info.php - - - - message: '#^Variable \$LAST_UPDATED might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: mirror.php - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: mirror.php - - - - message: '#^Variable \$MIRRORS might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: my.php - - - - message: '#^Variable \$userPreferences might not be defined\.$#' - identifier: variable.undefined - count: 11 - path: my.php - - - - message: '#^Variable \$QA_CHECKSUM_TYPES might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: pre-release-builds.php - - - - message: '#^Variable \$QA_RELEASES might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: pre-release-builds.php - - - - message: '#^Variable \$LANG might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: quickref.php - - - - message: '#^Variable \$RELEASES might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: releases/feed.php - - - - message: '#^Variable \$OLDRELEASES might not be defined\.$#' - identifier: variable.undefined - count: 3 - path: releases/index.php - - - - message: '#^Variable \$RELEASES might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: releases/index.php - - - - message: '#^Variable \$LANG might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: search.php - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 3 - path: search.php - - - - message: '#^Variable \$COUNTRIES might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: submit-event.php - - - - message: '#^Variable \$COUNTRIES might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: thanks.php - - - - message: '#^Variable \$historical_mirrors might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: thanks.php - - - - message: '#^Variable \$MYSITE might not be defined\.$#' - identifier: variable.undefined - count: 19 - path: urlhowto.php diff --git a/phpstan.neon.dist b/phpstan.neon.dist deleted file mode 100644 index d924087d33..0000000000 --- a/phpstan.neon.dist +++ /dev/null @@ -1,14 +0,0 @@ -includes: - - phpstan-baseline.neon - -parameters: - level: 3 - paths: - - . - fileExtensions: - - php - - inc - - excludePaths: - analyse: - - vendor/