Skip to content
Merged

v3.0 #16

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
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
extensions: mbstring
coverage: none
tools: none
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
extensions: mbstring
coverage: none
tools: none
Expand All @@ -71,14 +71,17 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
extensions: mbstring
coverage: none
tools: none

- name: Install dependencies with Composer
run: composer install --no-interaction --no-ansi --no-progress

- name: PHPStan analysis
run: vendor/bin/phpstan analyze src --level=5

unit-tests:
name: Unit tests

Expand All @@ -91,9 +94,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"
- "8.4"

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM composer:2.7.7 AS composer
FROM php:8.3-cli
FROM composer:2.8.4 AS composer
FROM php:8.4-cli

LABEL maintainer="Rayan Levert <rayanlevert@msn.com>"

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[![PHP from Packagist](https://img.shields.io/packagist/php-v/rayanlevert/dotenv)](https://packagist.org/packages/rayanlevert/dotenv)
[![codecov](https://codecov.io/gh/rayanlevert/dotenv/branch/main/graph/badge.svg)](https://codecov.io/gh/rayanlevert/dotenv)

> Version >= 3.0 supports only php8.4 with all brand new features, for >= php8.1, version 2.0 is still supported.

### Initializes the instance setting the file path

```php
Expand Down
17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,26 @@
}
],
"require": {
"php": ">=8.1",
"ext-mbstring": "*"
"php": ">=8.4"
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^11.0",
"phpstan/phpstan": "^2.1.0",
"squizlabs/php_codesniffer": "^3.7"
},
"config": {
"optimize-autoloader": true
"optimize-autoloader": true,
"platform": {
"php": "8.4.1"
}
},
"autoload": {
"psr-4": {
"RayanLevert\\Dotenv\\": "src/"
}
},
"exclude-from-classmap": [
"tests/"
]
},
"autoload-dev": {
"psr-4": {
Expand Down
Loading
Loading