-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
862 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
## 7.1.0 - 2024-01-01 | ||
|
||
> **WARNING** | ||
> | ||
> As PHP 8.0 is still supported, database of CompatInfoDB (v5.14) is outdated and does not contain recent PHP 8.3 elements. | ||
> | ||
> But source code that implement PHP 8.3 new features may be detected ! | ||
### Added | ||
|
||
- PHP 8.3.0 support | ||
- Docker support with official image : <https://github.com/llaville/php-compatinfo/pkgs/container/php-compatinfo> | ||
- Compatibility with Symfony Components v7 | ||
|
||
**Full Changelog**: [7.0.3...7.1.0](https://github.com/llaville/php-compatinfo/compare/7.0.3...7.1.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
ARG PHP_VERSION=8.1 | ||
|
||
FROM php:${PHP_VERSION}-cli-alpine | ||
|
||
# https://github.com/opencontainers/image-spec/blob/main/annotations.md | ||
|
||
LABEL org.opencontainers.image.title="llaville/php-compatinfo" | ||
LABEL org.opencontainers.image.description="Docker image of bartlett/php-compatinfo Composer package" | ||
LABEL org.opencontainers.image.source="https://github.com/llaville/php-compatinfo" | ||
LABEL org.opencontainers.image.licenses="MIT" | ||
LABEL org.opencontainers.image.authors="llaville" | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh \ | ||
&& cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini | ||
|
||
# Create a group and user | ||
RUN addgroup appgroup && adduser appuser -D -G appgroup | ||
|
||
# Tell docker that all future commands should run as the appuser user | ||
USER appuser | ||
|
||
# Install Composer v2 binary version | ||
COPY --from=composer/composer:2-bin /composer /usr/bin/composer | ||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
ENV COMPOSER_PREFER_STABLE 1 | ||
RUN composer global require --no-progress bartlett/php-compatinfo ^7.1 | ||
#RUN composer global require --no-progress bartlett/php-compatinfo 7.1.x-dev | ||
|
||
# Following recommendation at https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#workdir | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2010-2023, Laurent Laville <[email protected]> | ||
Copyright (c) 2010-2024, Laurent Laville | ||
|
||
Credits to : | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?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 Bartlett\CompatInfo\Application\Sniffs\Attributes\OverrideAttributeSniff; | ||
use Bartlett\CompatInfo\Application\Sniffs\Constants\DynamicClassConstantFetchSniff; | ||
use Bartlett\CompatInfo\Application\Sniffs\Constants\TypedClassConstantSniff; | ||
use Bartlett\CompatInfo\Application\Sniffs\Expressions\StaticVarInitializerSniff; | ||
|
||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
/** | ||
* Build the Container with PHP 8.3 features detection | ||
* | ||
* @author Laurent Laville | ||
* @since Release 7.1.0 | ||
*/ | ||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$services = $containerConfigurator->services(); | ||
|
||
$services->defaults() | ||
->autowire() | ||
; | ||
|
||
$services->set(OverrideAttributeSniff::class); | ||
$services->set(DynamicClassConstantFetchSniff::class); | ||
$services->set(TypedClassConstantSniff::class); | ||
$services->set(StaticVarInitializerSniff::class); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?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 features detection up to version 8.3 | ||
* | ||
* @author Laurent Laville | ||
* @since Release 7.1.0 | ||
*/ | ||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$containerConfigurator->import(__DIR__ . '/up-to-php82.php'); | ||
$containerConfigurator->import(__DIR__ . '/php83.php'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.