Skip to content

Commit

Permalink
removed lagacy laravel supports
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulDey12 committed Mar 30, 2024
1 parent 3b78d54 commit c59d3a2
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 61 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ['8.0', 8.1, 8.2, 8.3]
laravel: [8, 9, 10, 11]
php: [8.1, 8.2, 8.3]
laravel: [10, 11]
exclude:
- php: 8.0
laravel: 10
- php: 8.0
laravel: 11
- php: 8.1
laravel: 11

Expand Down
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"pest_2.34.6","defects":[],"times":{"P\\Tests\\TurnstileCaptchaTest::__pest_evaluable_it_has_correct_response_name":0,"P\\Tests\\TurnstileCaptchaTest::__pest_evaluable_it_can_give_captcha_class":0,"P\\Tests\\TurnstileCaptchaTest::__pest_evaluable_it_can_be_failed":0.008,"P\\Tests\\TurnstileCaptchaTest::__pest_evaluable_it_can_be_succeed":0,"P\\Tests\\TurnstileCaptchaTest::__pest_evaluable_it_can_give_captcha_javascript":0,"P\\Tests\\HCaptchaTest::__pest_evaluable_it_can_give_captcha_class":0,"P\\Tests\\HCaptchaTest::__pest_evaluable_it_can_be_failed":0.001,"P\\Tests\\HCaptchaTest::__pest_evaluable_it_can_give_captcha_javascript#('fr', '<script src=\"https:\/\/js.hcapt\u2026cript>')":0,"P\\Tests\\HCaptchaTest::__pest_evaluable_it_can_give_captcha_javascript#('en-GB', '<script src=\"https:\/\/js.hcapt\u2026cript>')":0,"P\\Tests\\HCaptchaTest::__pest_evaluable_it_can_give_captcha_javascript#('en', '<script src=\"https:\/\/js.hcapt\u2026cript>')":0,"P\\Tests\\HCaptchaTest::__pest_evaluable_it_can_be_succeed":0,"P\\Tests\\HCaptchaTest::__pest_evaluable_it_has_correct_response_name":0,"P\\Tests\\CaptchaTest::__pest_evaluable_it_can_give_correct_driver":0,"P\\Tests\\CaptchaTest::__pest_evaluable_it_can_verify_captcha":0,"P\\Tests\\CaptchaTest::__pest_evaluable_it_can_throw_error_on_incorrect_driver":0,"P\\Tests\\CaptchaTest::__pest_evaluable_it_can_be_faked":0,"P\\Tests\\ValidationTest::__pest_evaluable_it_can_be_fail":0.004,"P\\Tests\\ValidationTest::__pest_evaluable_it_can_be_pass":0,"P\\Tests\\ValidationTest::__pest_evaluable_it_can_have_custom_error_messages#('Failed.')":0,"P\\Tests\\ValidationTest::__pest_evaluable_it_can_have_custom_error_messages#('Validation Failed.')":0,"P\\Tests\\ValidationTest::__pest_evaluable_it_can_validate_with_alias":0,"P\\Tests\\FakeCaptchaTest::__pest_evaluable_it_can_be_succeed":0,"P\\Tests\\FakeCaptchaTest::__pest_evaluable_it_can_be_failed":0.001,"P\\Tests\\FakeCaptchaTest::__pest_evaluable_it_can_give_captcha_class":0.014,"P\\Tests\\FakeCaptchaTest::__pest_evaluable_it_can_give_fake_captcha_javascript":0,"P\\Tests\\BladeTest::__pest_evaluable_it_can_give_captcha_container":0.03,"P\\Tests\\BladeTest::__pest_evaluable_it_can_give_captcha_javascript":0.002,"P\\Tests\\ReCaptchaTest::__pest_evaluable_it_can_be_failed":0.001,"P\\Tests\\ReCaptchaTest::__pest_evaluable_it_has_correct_response_name":0,"P\\Tests\\ReCaptchaTest::__pest_evaluable_it_can_give_captcha_class":0,"P\\Tests\\ReCaptchaTest::__pest_evaluable_it_can_give_captcha_javascript#('fr', '<script src=\"https:\/\/www.goog\u2026cript>')":0,"P\\Tests\\ReCaptchaTest::__pest_evaluable_it_can_give_captcha_javascript#('en-GB', '<script src=\"https:\/\/www.goog\u2026cript>')":0,"P\\Tests\\ReCaptchaTest::__pest_evaluable_it_can_give_captcha_javascript#('en', '<script src=\"https:\/\/www.goog\u2026cript>')":0,"P\\Tests\\ReCaptchaTest::__pest_evaluable_it_can_be_succeed":0.001}}
23 changes: 10 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,19 @@
}
],
"require": {
"php": "^8.0",
"guzzlehttp/guzzle": "^6.5.5|^7.0.1",
"illuminate/http": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
"illuminate/validation": "^8.0|^9.0|^10.0|^11.0",
"illuminate/view": "^8.0|^9.0|^10.0|^11.0"
"php": "^8.1",
"guzzlehttp/guzzle": "^7.5",
"illuminate/http": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0",
"illuminate/validation": "^10.0|^11.0",
"illuminate/view": "^10.0|^11.0"
},
"require-dev": {
"laravel/pint": "^1.5.0",
"nunomaduro/collision": "^5.10|^6.0|^7.0",
"orchestra/testbench": "^6.0|^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.2",
"phpunit/phpunit": "^9.5",
"rector/rector": "^0.18.4",
"spatie/pest-plugin-snapshots": "^1.0"
"nunomaduro/collision": "^7.0|^8.0",
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^2.0",
"rector/rector": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
58 changes: 21 additions & 37 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,39 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="VendorName Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Rahul900day Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<coverage>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]);

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_80,
LevelSetList::UP_TO_PHP_81,
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::EARLY_RETURN,
Expand Down
5 changes: 1 addition & 4 deletions src/Views/Components/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@

class Js extends Component
{
public ?string $lang;

public function __construct(?string $lang = null)
public function __construct(public ?string $lang = null)
{
$this->lang = $lang;
}

public function render(): string
Expand Down

0 comments on commit c59d3a2

Please sign in to comment.