Skip to content

Commit

Permalink
Merge pull request #524 from nanasess/bump-php-version
Browse files Browse the repository at this point in the history
GitHub Actions のミドルウェアバージョン修正
  • Loading branch information
Kiyotaka Oku authored Mar 16, 2022
2 parents 3d29506 + 0add9ef commit 79562fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-18.04 ]
php: [ '5.4', '5.5', '5.6', '7.1', '7.2', '7.3', '7.4', '8.0' ]
php: [ '5.4', '5.5', '5.6', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
db: [ mysql, pgsql ]
include:
- db: mysql
Expand All @@ -33,6 +33,7 @@ jobs:
dbuser: 'postgres'
dbpass: 'password'
dbname: 'eccube_db'

services:
mysql:
image: mysql:5.7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: '8.0'
php-version: '8.1'
- name: composer install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 暫定対応
Expand Down
4 changes: 3 additions & 1 deletion data/class/SC_Initial.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ public function phpconfigInit()
ini_set('mbstring.http_input', CHAR_CODE);
ini_set('mbstring.http_output', CHAR_CODE);
}
ini_set('auto_detect_line_endings', 1);
if (PHP_VERSION_ID < 80100) {
ini_set('auto_detect_line_endings', 1);
}
ini_set('default_charset', CHAR_CODE);
ini_set('mbstring.detect_order', 'auto');
ini_set('mbstring.substitute_character', 'none');
Expand Down
3 changes: 2 additions & 1 deletion data/class/helper/SC_Helper_CSV.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ public static function &fopen_for_output_csv($filename = 'php://output')
*/
class php_user_filter_lf2crlf extends php_user_filter
{
function filter($in, $out, &$consumed, $closing)
#[\ReturnTypeWillChange]
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket->data = preg_replace("/[\r\n]+$/", "\r\n", $bucket->data);
Expand Down

0 comments on commit 79562fb

Please sign in to comment.