Skip to content

Commit

Permalink
Compat-check against Laravel 9 (#11)
Browse files Browse the repository at this point in the history
* Compat-check against Laravel 9

* Delete .scrutinizer.yml
  • Loading branch information
olssonm authored Feb 8, 2022
1 parent da79a19 commit 4561e67
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 31 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
matrix:
include:
- php: 8.1
testbench: 6.*
testbench: 7.*
- php: 8.0
testbench: 7.*
- php: 8.0
testbench: 6.*
- php: 7.4
Expand Down
23 changes: 0 additions & 23 deletions .scrutinizer.yml

This file was deleted.

5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![Latest Version on Packagist][version-ico]][packagist-link]
[![PHP version][php-ico]][packagist-link]
[![Build Status][build-ico]][build-link]
[![Scrutinizer Score][scrutinizer-ico]][scrutinizer-link]
[![Software License][license-ico]](LICENSE.md)

**Validate, format and extract data for Swedish personnummer (social security numbers) and organisationsnummer (organizational numbers).**
Expand Down Expand Up @@ -256,14 +255,12 @@ if($entity::class == Person::class) {

The MIT License (MIT). Please see the [License File](LICENSE.md) for more information.

© 2021 [Marcus Olsson](https://marcusolsson.me).
© 2022 [Marcus Olsson](https://marcusolsson.me).

[version-ico]: https://img.shields.io/packagist/v/olssonm/swedish-entity.svg?style=flat-square
[build-ico]: https://img.shields.io/github/workflow/status/olssonm/swedish-entity/Run%20tests.svg?style=flat-square&label=tests
[license-ico]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[php-ico]: https://img.shields.io/packagist/php-v/olssonm/swedish-entity.svg?style=flat-square
[scrutinizer-ico]: https://img.shields.io/scrutinizer/g/olssonm/swedish-entity.svg?style=flat-square

[packagist-link]: https://packagist.org/packages/olssonm/swedish-entity
[build-link]: https://github.com/olssonm/swedish-entity/actions?query=workflow%3A%22Run+tests%22
[scrutinizer-link]: https://scrutinizer-ci.com/g/olssonm/swedish-entity
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"laravel/framework": "For Laravel-integration"
},
"require-dev": {
"orchestra/testbench": "^4.0|^5.0|^6.0",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
Expand All @@ -56,5 +56,6 @@
]
}
},
"minimum-stability": "stable"
"minimum-stability": "dev",
"prefer-stable": true
}
2 changes: 1 addition & 1 deletion tests/SwedishEntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function testPersonAttributes()
$this->assertEquals(11, $person1->day);
$this->assertEquals(817, $person1->num);
$this->assertEquals(7, $person1->check);
$this->assertEquals(Carbon::now()->setYear('1960')->diffInYears(Carbon::now()), $person1->age);
$this->assertEquals(Carbon::now()->setYear('1960')->diffInYears(Carbon::now()->setYear('2021')), $person1->age);
$this->assertEquals('Personnummer', $person1->type);
$this->assertEquals('Apr-11', $person1->birthday->format('M-d'));
$this->assertEquals('male', $person1->gender);
Expand Down

0 comments on commit 4561e67

Please sign in to comment.