Skip to content

Commit 0c7540f

Browse files
authored
Add parameters $enclosure and $escape to CSVArray::toArray
1 parent 5193bf1 commit 0c7540f

File tree

8 files changed

+47
-6637
lines changed

8 files changed

+47
-6637
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
coverage: none
2525
extensions: mbstring
26-
php-version: 7.4
26+
php-version: 8.1
2727

2828
- name: "Validate composer.json and composer.lock"
2929
run: composer validate --strict
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
coverage: none
4646
extensions: mbstring
47-
php-version: 7.4
47+
php-version: 8.1
4848

4949
- name: "Install locked dependencies with composer"
5050
run: composer install --no-interaction --no-progress --no-suggest
@@ -73,9 +73,9 @@ jobs:
7373
with:
7474
coverage: none
7575
extensions: mbstring
76-
php-version: 7.4
76+
php-version: 8.1
7777

78-
- name: "Install locked dependencies with composer"
78+
- name: "Install dependencies with composer"
7979
run: composer install --no-interaction --no-progress --no-suggest
8080

8181
- name: "Run php-cs-fixer"
@@ -100,9 +100,9 @@ jobs:
100100
with:
101101
coverage: none
102102
extensions: mbstring
103-
php-version: 7.4
103+
php-version: 8.1
104104

105-
- name: "Install locked dependencies with composer"
105+
- name: "Install dependencies with composer"
106106
run: composer install --no-interaction --no-progress --no-suggest
107107

108108
- name: "Run phpstan"
@@ -118,10 +118,10 @@ jobs:
118118
php-version:
119119
- 7.4
120120
- 8.0
121+
- 8.1
121122

122123
dependencies:
123124
- lowest
124-
- locked
125125
- highest
126126

127127
illuminate:
@@ -149,10 +149,6 @@ jobs:
149149
if: matrix.dependencies == 'lowest'
150150
run: composer update --prefer-lowest --no-interaction --no-progress --no-suggest
151151

152-
- name: "Install locked dependencies with composer"
153-
if: matrix.dependencies == 'locked'
154-
run: composer install --no-interaction --no-progress --no-suggest
155-
156152
- name: "Install highest dependencies with composer"
157153
if: matrix.dependencies == 'highest'
158154
run: composer update --no-interaction --no-progress --no-suggest
@@ -174,9 +170,9 @@ jobs:
174170
with:
175171
coverage: pcov
176172
extensions: mbstring
177-
php-version: 7.4
173+
php-version: 8.1
178174

179-
- name: "Install locked dependencies with composer"
175+
- name: "Install dependencies with composer"
180176
run: composer install --no-interaction --no-progress --no-suggest
181177

182178
- name: "Dump Xdebug filter with phpunit/phpunit"
@@ -202,9 +198,9 @@ jobs:
202198
with:
203199
coverage: pcov
204200
extensions: mbstring
205-
php-version: 7.4
201+
php-version: 8.1
206202

207-
- name: "Install locked dependencies with composer"
203+
- name: "Install dependencies with composer"
208204
run: composer install --no-interaction --no-progress --no-suggest
209205

210206
- name: "Run mutation tests with infection/infection"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/.build
22
/vendor
3+
/composer.lock
34
/.idea
45
/.php-cs-fixer.cache
6+
/.phpunit.result.cache

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## v1.3.0
11+
12+
### Added
13+
14+
- Add parameters `$enclosure` and `$escape` to `CSVArray::toArray`
15+
1016
## v1.2.0
1117

1218
### Added

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ it: fix stan test ## Run the commonly used targets
33

44
.PHONY: help
55
help: ## Displays this list of targets with descriptions
6-
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
6+
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
77

88
.PHONY: coverage
99
coverage: vendor ## Collects coverage from running unit tests with phpunit
@@ -19,7 +19,7 @@ fix: vendor
1919
.PHONY: infection
2020
infection: vendor ## Runs mutation tests with infection
2121
mkdir -p .build/infection
22-
vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=100 --min-msi=100
22+
vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=60 --min-msi=60
2323

2424
.PHONY: stan
2525
stan: vendor ## Runs a static analysis with phpstan

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"require-dev": {
2424
"ergebnis/composer-normalize": "^2",
25-
"infection/infection": "~0.25",
25+
"infection/infection": "~0.26.6",
2626
"jangregor/phpstan-prophecy": "^1",
2727
"mll-lab/php-cs-fixer-config": "^4.3",
2828
"phpstan/extension-installer": "^1",
@@ -31,9 +31,9 @@
3131
"phpstan/phpstan-phpunit": "^1",
3232
"phpstan/phpstan-strict-rules": "^1",
3333
"phpunit/phpunit": "^9",
34-
"rector/rector": "^0.12.15",
34+
"rector/rector": "^0.14.5",
3535
"symfony/var-dumper": "^5",
36-
"thecodingmachine/phpstan-safe-rule": "^1.1"
36+
"thecodingmachine/phpstan-safe-rule": "^1.2"
3737
},
3838
"autoload": {
3939
"psr-4": {
@@ -50,6 +50,7 @@
5050
},
5151
"config": {
5252
"allow-plugins": {
53+
"ocramius/package-versions": true,
5354
"phpstan/extension-installer": true,
5455
"ergebnis/composer-normalize": true,
5556
"infection/extension-installer": true

0 commit comments

Comments
 (0)