Skip to content

Commit 2b65833

Browse files
Merge pull request #42 from Laragear/feat/new-meta
[1.x] Properly adds PHP 8.0, Laravel 10 support
2 parents 50164ab + 6f87e6d commit 2b65833

File tree

5 files changed

+37
-43
lines changed

5 files changed

+37
-43
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
/.idea
44
.php-cs-fixer.cache
55
.phpunit.result.cache
6+
.phpunit.cache
67
composer.lock
7-
phpunit.xml.bak
8+
phpunit.xml.bak

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Your support allows me to keep this package free, up-to-date and maintainable. A
3636

3737
## Requirements
3838

39-
* Laravel 9.x or later
40-
* PHP 8.0 or later
39+
* PHP 8 or later
40+
* Laravel 9, 10 or later
4141

4242
## Installation
4343

@@ -585,4 +585,4 @@ If you discover any security related issues, please email darkghosthunter@gmail.
585585

586586
This specific package version is licensed under the terms of the [MIT License](LICENSE.md), at time of publishing.
587587

588-
[Laravel](https://laravel.com) is a Trademark of [Taylor Otwell](https://github.com/TaylorOtwell/). Copyright © 2011-2022 Laravel LLC.
588+
[Laravel](https://laravel.com) is a Trademark of [Taylor Otwell](https://github.com/TaylorOtwell/). Copyright © 2011-2023 Laravel LLC.

composer.json

+11-12
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,21 @@
2424
"issues": "https://github.com/Laragear/TwoFactor/issues"
2525
},
2626
"require": {
27-
"php": ">=8.0.2",
27+
"php": "8.*",
2828
"ext-json": "*",
29-
"laragear/meta": "^1.3",
30-
"bacon/bacon-qr-code": "^2.0",
29+
"laragear/meta": "^2.0.2",
30+
"bacon/bacon-qr-code": "2.*",
3131
"paragonie/constant_time_encoding": "^2.5",
32-
"illuminate/config": "^9.0|^10.0",
33-
"illuminate/validation": "^9.0|^10.0",
34-
"illuminate/database": "^9.0|^10.0",
35-
"illuminate/support": "^9.0|^10.0",
36-
"illuminate/http": "^9.0|^10.0",
37-
"illuminate/auth": "^9.0|^10.0"
32+
"illuminate/config": "9.*|10.*",
33+
"illuminate/validation": "9.*|10.*",
34+
"illuminate/database": "9.*|10.*",
35+
"illuminate/support": "9.*|10.*",
36+
"illuminate/http": "9.*|10.*",
37+
"illuminate/auth": "9.*|10.*"
3838
},
3939
"require-dev": {
40-
"mockery/mockery": "^1.5",
41-
"orchestra/testbench": "^7.0|^8.0",
42-
"phpunit/phpunit": "^9.5"
40+
"laragear/meta-testing": "^1.2.2",
41+
"orchestra/testbench": "^7.22|8.*"
4342
},
4443
"autoload": {
4544
"psr-4": {

phpunit.xml

+20-26
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false"
3-
backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true"
4-
convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false"
5-
stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd">
6-
<coverage>
7-
<include>
8-
<directory suffix=".php">src/</directory>
9-
</include>
10-
<report>
11-
<clover outputFile="build/logs/clover.xml"/>
12-
</report>
13-
</coverage>
14-
<testsuites>
15-
<testsuite name="Test Suite">
16-
<directory>tests</directory>
17-
</testsuite>
18-
</testsuites>
19-
<logging>
20-
<junit outputFile="build/report.junit.xml"/>
21-
</logging>
22-
<php>
23-
<env name="APP_ENV" value="testing"/>
24-
<env name="APP_DEBUG" value="true"/>
25-
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
26-
<env name="DB_CONNECTION" value="testing"/>
27-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
<report>
8+
<clover outputFile="build/logs/clover.xml"/>
9+
</report>
10+
</coverage>
11+
<testsuites>
12+
<testsuite name="Test Suite">
13+
<directory>tests</directory>
14+
</testsuite>
15+
</testsuites>
16+
<php>
17+
<env name="APP_ENV" value="testing"/>
18+
<env name="APP_DEBUG" value="true"/>
19+
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
20+
<env name="DB_CONNECTION" value="testing"/>
21+
</php>
2822
</phpunit>

tests/ServiceProviderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Tests;
44

55
use Illuminate\Support\ServiceProvider;
6-
use Laragear\Meta\Testing\InteractsWithServiceProvider;
6+
use Laragear\MetaTesting\InteractsWithServiceProvider;
77
use Laragear\TwoFactor\Http\Middleware\ConfirmTwoFactorCode;
88
use Laragear\TwoFactor\Http\Middleware\RequireTwoFactorEnabled;
99
use Laragear\TwoFactor\Rules\Totp;

0 commit comments

Comments
 (0)