-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make data and openingHours readonly
- Make DateTimeRange, Time and PreciseTime readonly - Add stronger types - Drop PHP < 8.2 - Make Day an enum
- Loading branch information
1 parent
cb696c2
commit 25a7042
Showing
18 changed files
with
200 additions
and
288 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
php: ['7.4'] | ||
php: ['8.2'] | ||
setup: ['stable'] | ||
|
||
steps: | ||
|
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 |
---|---|---|
|
@@ -16,14 +16,19 @@ | |
"email": "[email protected]", | ||
"homepage": "https://spatie.be", | ||
"role": "Developer" | ||
}, | ||
{ | ||
"name": "kylekatarnls", | ||
"homepage": "https://github.com/kylekatarnls", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.4 || ^8.0" | ||
"php": "^8.2" | ||
}, | ||
"require-dev": { | ||
"kylekatarnls/multi-tester": "^1.1", | ||
"phpunit/phpunit": "^9.4" | ||
"kylekatarnls/multi-tester": "^1.4", | ||
"phpunit/phpunit": "^10.4.2" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
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,29 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.4/phpunit.xsd" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
verbose="true" | ||
cacheDirectory=".phpunit.cache" | ||
> | ||
<testsuites> | ||
<testsuite name="Spatie Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage | ||
processUncoveredFiles="true" | ||
ignoreDeprecatedCodeUnits="true" | ||
disableCodeCoverageIgnore="true" | ||
> | ||
<include> | ||
<directory>src</directory> | ||
</include> | ||
<report> | ||
<html outputDirectory="coverage" /> | ||
</report> | ||
</coverage> | ||
<php> | ||
<ini name="date.timezone" value="UTC"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Spatie Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="true"> | ||
<report> | ||
<html outputDirectory="coverage"/> | ||
</report> | ||
</coverage> | ||
<php> | ||
<ini name="date.timezone" value="UTC"/> | ||
</php> | ||
<source> | ||
<include> | ||
<directory>src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
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
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.