Skip to content

Commit 38add1a

Browse files
authored
chore: 🤖 Bump version (#16)
1 parent 4d2977f commit 38add1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+464
-264
lines changed

.github/workflows/ci.yml

+31-17
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,20 @@ jobs:
2424
2525
strategy:
2626
matrix:
27-
php: ['8.0', 8.1, 8.2]
28-
lib:
29-
- { laravel: ^11.0 }
30-
- { laravel: ^10.0 }
31-
- { laravel: ^9.0 }
27+
php: [8.2, 8.3, 8.4]
28+
laravel: [^11.0, ^12.0, ^13.0.x-dev]
3229
exclude:
33-
- { php: 8.0, lib: { laravel: ^10.0 } }
34-
- { php: 8.0, lib: { laravel: ^11.0 } }
35-
- { php: 8.1, lib: { laravel: ^11.0 } }
30+
- php: 8.2
31+
laravel: ^13.0.x-dev
3632
include:
37-
- { lib: { laravel: ^9.0 }, phpstan: 1 }
38-
- { lib: { laravel: ^10.0 }, phpstan: 1 }
33+
- php: 8.2
34+
php-cs-fixer: 1
35+
- php: 8.3
36+
php-cs-fixer: 1
37+
- laravel: ^11.0
38+
larastan: 1
39+
- laravel: ^12.0
40+
larastan: 1
3941

4042
steps:
4143
- uses: actions/checkout@v3
@@ -46,27 +48,39 @@ jobs:
4648
php-version: ${{ matrix.php }}
4749
coverage: xdebug
4850

49-
- name: Remove impossible dependencies
50-
if: ${{ matrix.phpstan != 1 }}
51+
- name: Remove impossible dependencies (nunomaduro/larastan)
52+
if: ${{ matrix.larastan != 1 }}
5153
run: composer remove nunomaduro/larastan --dev --no-update
5254

55+
- name: Remove impossible dependencies (friendsofphp/php-cs-fixer)
56+
if: ${{ matrix.php-cs-fixer != 1 }}
57+
run: composer remove friendsofphp/php-cs-fixer --dev --no-update
58+
5359
- name: Adjust Package Versions
5460
run: |
55-
composer require "laravel/framework:${{ matrix.lib.laravel }}" --dev
61+
composer require "laravel/framework:${{ matrix.laravel }}" --dev --no-update
62+
composer update
63+
64+
- name: Prepare Coverage Directory
65+
run: mkdir -p build/logs
66+
67+
- name: PHP-CS-Fixer
68+
if: ${{ matrix.php-cs-fixer == 1 }}
69+
run: composer cs
5670

5771
- name: PHPStan
58-
if: ${{ matrix.phpstan == 1 }}
72+
if: ${{ matrix.larastan == 1 }}
5973
run: composer phpstan
6074

61-
- run: mkdir -p build/logs
62-
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
75+
- name: Test
76+
run: composer test -- --testdox --coverage-clover build/logs/clover.xml
6377

6478
- name: Upload Coverage
6579
uses: nick-invision/retry@v2
6680
env:
6781
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6882
COVERALLS_PARALLEL: 'true'
69-
COVERALLS_FLAG_NAME: 'laravel:${{ matrix.lib.laravel }}'
83+
COVERALLS_FLAG_NAME: "laravel:${{ matrix.laravel }} php:${{ matrix.php }}"
7084
with:
7185
timeout_minutes: 1
7286
max_attempts: 3

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ composer.lock
22
/.idea/
33
/vendor/
44
/build/logs/
5-
.php_cs.cache
5+
.php-cs-fixer.cache
66
/.phpunit.cache/

.php-cs-fixer.php

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use PhpCsFixer\Config;
6+
use PhpCsFixer\Finder;
7+
8+
return (new Config())
9+
->setFinder(
10+
(new Finder())
11+
->in([
12+
__DIR__ . '/src',
13+
__DIR__ . '/phpstan',
14+
__DIR__ . '/tests',
15+
]),
16+
)
17+
->setRules([
18+
'@Symfony' => true,
19+
'@Symfony:risky' => true,
20+
'@PhpCsFixer' => true,
21+
'@PhpCsFixer:risky' => true,
22+
'@PHP80Migration' => true,
23+
'@PHP80Migration:risky' => true,
24+
'@PSR12' => true,
25+
'@PHPUnit84Migration:risky' => true,
26+
'blank_line_before_statement' => [
27+
'statements' => [
28+
'break',
29+
'case',
30+
'continue',
31+
'declare',
32+
'default',
33+
'exit',
34+
'goto',
35+
'include',
36+
'include_once',
37+
'phpdoc',
38+
'require',
39+
'require_once',
40+
'return',
41+
'switch',
42+
'throw',
43+
'try',
44+
],
45+
],
46+
'cast_spaces' => ['space' => 'none'],
47+
'concat_space' => ['spacing' => 'one'],
48+
'control_structure_continuation_position' => true,
49+
'date_time_immutable' => true,
50+
'declare_parentheses' => true,
51+
'echo_tag_syntax' => ['format' => 'short'],
52+
'final_internal_class' => false,
53+
'general_phpdoc_annotation_remove' => true,
54+
'global_namespace_import' => [
55+
'import_classes' => true,
56+
'import_constants' => true,
57+
'import_functions' => true,
58+
],
59+
'heredoc_indentation' => false,
60+
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
61+
'native_constant_invocation' => false,
62+
'native_function_invocation' => false,
63+
'nullable_type_declaration_for_default_null_value' => true,
64+
'php_unit_internal_class' => false,
65+
'php_unit_method_casing' => false,
66+
'php_unit_strict' => false,
67+
'php_unit_test_annotation' => false,
68+
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
69+
'php_unit_test_class_requires_covers' => false,
70+
'phpdoc_line_span' => true,
71+
'phpdoc_separation' => false,
72+
'phpdoc_summary' => false,
73+
'phpdoc_to_comment' => ['ignored_tags' => ['noinspection']],
74+
'phpdoc_types_order' => false,
75+
'regular_callable_call' => true,
76+
'simplified_if_return' => true,
77+
'simplified_null_return' => true,
78+
'single_line_throw' => false,
79+
'trailing_comma_in_multiline' => [
80+
'elements' => ['arrays', 'arguments', 'parameters'],
81+
],
82+
'types_spaces' => false,
83+
'use_arrow_functions' => false,
84+
'yoda_style' => [
85+
'equal' => false,
86+
'identical' => false,
87+
'less_and_greater' => false,
88+
],
89+
])
90+
->setRiskyAllowed(true);

.scrutinizer.yml

-47
This file was deleted.

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# Laravel MySQL System Variable Manager<br>[![Build Status](https://github.com/mpyw/laravel-mysql-system-variable-manager/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/mpyw/laravel-mysql-system-variable-manager/actions) [![Coverage Status](https://coveralls.io/repos/github/mpyw/laravel-mysql-system-variable-manager/badge.svg?branch=migrate-ci)](https://coveralls.io/github/mpyw/laravel-mysql-system-variable-manager?branch=migrate-ci) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mpyw/laravel-mysql-system-variable-manager/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mpyw/laravel-mysql-system-variable-manager/?branch=master)
1+
# Laravel MySQL System Variable Manager<br>[![Build Status](https://github.com/mpyw/laravel-mysql-system-variable-manager/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/mpyw/laravel-mysql-system-variable-manager/actions) [![Coverage Status](https://coveralls.io/repos/github/mpyw/laravel-mysql-system-variable-manager/badge.svg?branch=migrate-ci)](https://coveralls.io/github/mpyw/laravel-mysql-system-variable-manager?branch=migrate-ci)
22

33
A tiny extension of `MySqlConnection` that manages **session** system variables
44

55
## Requirements
66

77
| Package | Version | Mandatory |
88
|:--------|:--------------------------------------|:---------:|
9-
| PHP | <code>^8.0</code> ||
10-
| Laravel | <code>^9.0 &#124;&#124; ^10.0 </code> ||
11-
| PHPStan | <code>&gt;=1.1</code> | |
9+
| PHP | <code>^8.2</code> ||
10+
| Laravel | <code>^11.0 &#124;&#124; ^12.0</code> ||
11+
| PHPStan | <code>&gt;=2.0</code> | |
12+
13+
> [!NOTE]
14+
> Older versions have outdated dependency requirements. If you cannot prepare the latest environment, please refer to past releases.
1215
1316
## Installing
1417

0 commit comments

Comments
 (0)