Skip to content

Conversation

@ahmad-cit22
Copy link
Contributor

@ahmad-cit22 ahmad-cit22 commented Nov 16, 2024

There was some mistake when this PR was created. Kindly check the updated PR: #53538

driesvints and others added 30 commits March 7, 2024 15:21
* Prep Laravel v12

* wip

* Temp constraint on prompts

* wip
# Conflicts:
#	CHANGELOG.md
# Conflicts:
#	CHANGELOG.md
#	src/Illuminate/Foundation/Application.php
# Conflicts:
#	CHANGELOG.md
#	src/Illuminate/Foundation/Application.php
# Conflicts:
#	CHANGELOG.md
#	composer.json
#	src/Illuminate/Foundation/Application.php
# Conflicts:
#	composer.json
# Conflicts:
#	composer.json
# Conflicts:
#	CHANGELOG.md
#	src/Illuminate/Foundation/Application.php
# Conflicts:
#	composer.json
* make Str::is() support multiline strings

* more tests with patterns containing new lines

* cs

* cs
# Conflicts:
#	CHANGELOG.md
#	composer.json
#	src/Illuminate/Foundation/Application.php
# Conflicts:
#	CHANGELOG.md
#	src/Illuminate/Foundation/Application.php
# Conflicts:
#	CHANGELOG.md
#	src/Illuminate/Foundation/Application.php
…#51544)

* [12.x] Adds missing streamJson() to ResponseFactory contact

* Update ResponseFactory.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
# Conflicts:
#	CHANGELOG.md
#	src/Illuminate/Foundation/Application.php
# Conflicts:
#	CHANGELOG.md
#	composer.json
#	src/Illuminate/Foundation/Application.php
#	src/Illuminate/Log/composer.json
crynobone and others added 26 commits September 25, 2024 06:41
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Close laravel#52954

This PR remove the duplicated prefix when use DynamoDB as cache drive and try to lock

DynamoDB Key now:
laravel_cache_laravel_cache_my-lock

DynamoDB Key after:
laravel_cache_my-lock
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
* Add missing docblock
* Fixes new tests to be compatible with 12.x code

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
* fix test namespace.

Signed-off-by: Ola Valø Pettersen <ola@24nettbutikk.no>

* map concurrency output to array keys on input.

Signed-off-by: Ola Valø Pettersen <ola@24nettbutikk.no>

* modify forkDriver to use input index for output.

Signed-off-by: Ola Valø Pettersen <ola@24nettbutikk.no>

* comment out tests, as the package is not preset by default.

Signed-off-by: Ola Valø Pettersen <ola@24nettbutikk.no>

* Remove unnecessary PHPStan ignore comment

Signed-off-by: Ola Valø Pettersen <ola@24nettbutikk.no>

* fix comment format

Signed-off-by: Ola Valø Pettersen <ola@24nettbutikk.no>

* formatting

Signed-off-by: Ola Valø Pettersen <ola@24nettbutikk.no>

* Update ForkDriver.php

---------

Signed-off-by: Ola Valø Pettersen <ola@24nettbutikk.no>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
…aravel#53304)

the way `partition` currently works is it returns an `Eloquent\Collection` of `Eloquent\Collection`s, which is technically not allowed by the generic type hints defined by the class, and also doesn't really make any logical sense for how someone would want to use this.

It also causes issues in the IDE because based on the type hints it assumes ALL values of an `Eloquent\Collection` are of type `Eloquent\Model`, which is not the case for the `partition` method.

what we really want is a `Support\Collection` of `Eloquent\Collection`s. we can accomplish this by first calling the `parent::partition` method to get our (illegal) result of `Eloquent\Collection<int, Eloquent\Collection>`, and then converting it to a base collection to end up with the desired `Support\Collection<int, Eloquent\Collection>`.
…aravel#53231)

* Tweaks the RefreshDatabase trait for better support of multi-dbs

When working with multiple databases and some of them are in-memory
while others are regular disk-based databases, we usually have to
override some of the traits methods to make it work. Also, the database
restoration process doesn't handle multiple DBs that well.

With these changes, when an app needs to support multiple databases, the
user will have to do a few steps:

1. Set the `$connectionsToTransact` protected property on the TestCase
listing all connections they use
1. Override the `migrateDatabase` method and call all the migrate:fresh
commands for all their connections

Restoring the databases between tests should now be completely handled
by the trait, no matter which database connection uses in-memory
databases or not.

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
* Validate UUID's version optionally

* StyleCI fixes

* Reorder imports

* Check type before length

* Fix wrong variable

* Symfony/uid doesn't implement version 2

* fix: 🐛 Cast extracted value for identity check of match

* test: ✅ Add tests for both Str::isUuid() and the uuid validation rule

* style: 🎨 Fix StyleCI error

Suggested-by: Vano Devium <vano@devium.me>
cc: Vano Devium <vano@devium.me>
thanks-to: Vano Devium <vano@devium.me>
original-patch-by: Vano Devium <vano@devium.me>
based-on-a-patch-by: Vano Devium <vano@devium.me>
based-on-patch-by: Vano Devium <vano@devium.me>
credit-to: Vano Devium <vano@devium.me>
inspired-by-patch-by: Vano Devium <vano@devium.me>
initial-work-by: Vano Devium <vano@devium.me>
inspired-by: laravel#21672

* test: ✅ Add non-existent UUID version cases to data provider

Suggested-by: Vano Devium <webdevium@gmail.com>
cc: Vano Devium <webdevium@gmail.com>
thanks-to: Vano Devium <webdevium@gmail.com>
original-patch-by: Vano Devium <webdevium@gmail.com>
based-on-a-patch-by: Vano Devium <webdevium@gmail.com>
based-on-patch-by: Vano Devium <webdevium@gmail.com>
credit-to: Vano Devium <webdevium@gmail.com>
inspired-by-patch-by: Vano Devium <webdevium@gmail.com>
initial-work-by: Vano Devium <webdevium@gmail.com>
inspired-by: laravel#21672
* feat: ✨ Add support for UUID v2 and max UUID validation

* test: ✅ Add cases for every supported UUID version to data provider of UUID validation tests

* style: 🎨 Fix StyleCI errors

– Remove unused imports
– Spacing

improves: laravel#53341

* Add missing import

* style: 🎨 Remove indent from blank line

* Add ramsey/uuid to composer suggestions

to be able to use it for UUID version constraint validation

* Update Str.php

* Update Str.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
* add step in collection range

* add step in collection range

* add step in collection range

---------

Co-authored-by: Ashot Gharakeshishyan <a.gharakeshishyan@aico.swiss>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@ahmad-cit22 ahmad-cit22 changed the title Fix port extraction issue Fix: Improve Request Port Extraction Handling in ServeCommand.php to Prevent Artisan Command Failures Nov 16, 2024
@ahmad-cit22 ahmad-cit22 deleted the fix-port-extraction-issue branch November 16, 2024 13:56
@ahmad-cit22 ahmad-cit22 changed the title Fix: Improve Request Port Extraction Handling in ServeCommand.php to Prevent Artisan Command Failures Fix: Improve Request Port Extraction Handling in ServeCommand.php Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.