summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-bartlett-PHP-CompatInfo-7.0.0-php83.patch')
-rw-r--r--php-bartlett-PHP-CompatInfo-7.0.0-php83.patch70
1 files changed, 70 insertions, 0 deletions
diff --git a/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch b/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch
new file mode 100644
index 0000000..eeb3b98
--- /dev/null
+++ b/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch
@@ -0,0 +1,70 @@
+From bc069b672d65748fdc257e23c667310946e7837e Mon Sep 17 00:00:00 2001
+From: Laurent Laville <laurent.laville@gmail.com>
+Date: Thu, 2 Nov 2023 06:52:05 +0000
+Subject: [PATCH] initialize PHP 8.3 support
+
+---
+ composer.json | 2 +-
+ config/set/php83.php | 18 ++++++++++++++++++
+ config/set/up-to-php83.php | 14 ++++++++++++++
+ 3 files changed, 33 insertions(+), 1 deletion(-)
+ create mode 100644 config/set/php83.php
+ create mode 100644 config/set/up-to-php83.php
+
+diff --git a/composer.json b/composer.json
+index 34446906..9afc85cd 100644
+--- a/composer.json
++++ b/composer.json
+@@ -70,7 +70,7 @@
+ "extra": {
+ "enable-patching": true,
+ "branch-alias": {
+- "dev-master": "7.0.x-dev"
++ "dev-master": "8.0.x-dev"
+ }
+ }
+ }
+diff --git a/config/set/php83.php b/config/set/php83.php
+new file mode 100644
+index 00000000..32531fb1
+--- /dev/null
++++ b/config/set/php83.php
+@@ -0,0 +1,18 @@
++<?php declare(strict_types=1);
++/**
++ * This file is part of the PHP_CompatInfo package.
++ *
++ * For the full copyright and license information, please view the LICENSE
++ * file that was distributed with this source code.
++ */
++
++use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
++
++/**
++ * Build the Container with PHP 8.3 features detection
++ *
++ * @author Laurent Laville
++ * @since Release 8.0.0
++ */
++return static function (ContainerConfigurator $containerConfigurator): void {
++};
+diff --git a/config/set/up-to-php83.php b/config/set/up-to-php83.php
+new file mode 100644
+index 00000000..8a496337
+--- /dev/null
++++ b/config/set/up-to-php83.php
+@@ -0,0 +1,14 @@
++<?php declare(strict_types=1);
++/**
++ * Build the Container with PHP features detection up to version 8.3
++ *
++ * @author Laurent Laville
++ * @since Release 8.0.0
++ */
++
++use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
++
++return static function (ContainerConfigurator $containerConfigurator): void {
++ $containerConfigurator->import(__DIR__ . '/up-to-php82.php');
++ $containerConfigurator->import(__DIR__ . '/php83.php');
++};