Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.x] Remove unused parameter $connection #51330

Closed
wants to merge 26 commits into from

Conversation

saMahmoudzadeh
Copy link
Contributor

This PR, removes the unused parameter $connection from the methods addFluentCommands, addFluentIndexes, and addImpliedCommands.

Tietew and others added 25 commits May 2, 2024 07:56
* Add Databases nightly workflow

* Fix indention

* Continue on error

Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com>

---------

Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com>
add "or equal to" so the comment is accurate for the behavior of the method.
* [11.x] Introduce method `Rule::array()`

* CS fixes

* Add `func_get_args` test

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
laravel#51289)

* Add tests for handling non-baked enum and empty string requests

* use existing request key

---------

Co-authored-by: Hrant Aghanian <haghanian@ronasit.com>
* filled and blank works with `Stringable`

* unnecessary

---------

Co-authored-by: stefan.riedel <stefan.riedel@arbeitsmedizin.de>
* fix image ration validation for high ratio images

* fix style ci

* enhance comments

* enhance precision equation

* enhance precision equation

* enhance precision equation
* Prevent int

* Update helpers.php

* leaved only PHPdoc part
* Add release notes

So it's clear how to do releases for the framework repo.

* Update RELEASE.md

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
* filled and blank works with `Stringable`

* unnecessary

* `Stringable` is also an interface from symfony and is implemented on models. So if we check a model if a model is filled it except an error: Call to undefined method App\\Model::trim(). So we use now explicit Illuminate\Support\Stringable

* reduce compare to native trim - function

* unnused Model

---------

Co-authored-by: stefan.riedel <stefan.riedel@arbeitsmedizin.de>
…application (laravel#51292)

* add ability to loading cached Routes for application using callback

* remove method

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
* add mysql json_overlaps

* update error message

* update comments

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
…51316)

* feat: Add `exists` method to `ValidatedInput`

* feat: Add `hasAny` method to `ValidatedInput`

* feat: Add `whenHas` method to `ValidatedInput`

* feat: Add `filled` method to `ValidatedInput`

* feat: Add `isNotFilled` method to `ValidatedInput`

* feat: Add `anyFilled` method to `ValidatedInput`

* feat: Add `whenFilled` method to `ValidatedInput`

* feat: Add `whenMissing` method to `ValidatedInput`

* feat: Add `isEmptyString` method to `ValidatedInput`

* feat: Add `keys` method to `ValidatedInput`

* feat: Add `input` method to `ValidatedInput`

* feat: Add `string` method to `ValidatedInput`

* feat: Add `str` method to `ValidatedInput`

* feat: Add `boolean` method to `ValidatedInput`

* feat: Add `integer` method to `ValidatedInput`

* feat: Add `float` method to `ValidatedInput`

* feat: Add `date` method to `ValidatedInput`

* feat: Add `enum` method to `ValidatedInput`

* feat: Add `dump` method to `ValidatedInput`

* feat: Add `dd` method to `ValidatedInput`

* refactor: Add `$key` prop to `collect` method in `ValidatedInput`

* refactor: Change usages `$this->input` to `$this->all()`

* refactor: Change usages `$this->input[$key]` to `$this->input($key)`

* refactor: Change usages `isset($this->input[$name])` to `$this->exists($name)`

* test: Added tests

* formatting

* formatting

* formatting

---------

Co-authored-by: Fatih Aydın <fatihaydin@temizlikyolda.com>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
* Adding PasswordResetLinkSent event

* formatting

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
@Jacobs63
Copy link
Contributor

Jacobs63 commented May 8, 2024

Changing method signatures is a breaking change, this cannot target 11.x

@saMahmoudzadeh
Copy link
Contributor Author

saMahmoudzadeh commented May 8, 2024

Hi @Jacobs63

These changes pertain to two protected methods that are not used anywhere else externally. Of course, I can also send it for version 12, depending on @taylorotwell approval and feedback.

In fact, we haven't made any changes to the toSql() method, which is public and accessible from outside, and accepts the parameter $connection.

@Jacobs63
Copy link
Contributor

Jacobs63 commented May 8, 2024

Hi @Jacobs63

These changes pertain to two protected methods that are not used anywhere else externally. Of course, I can also send it for version 12, depending on @taylorotwell approval and feedback.

Which, still, doesn't mean someone couldn't have extended the Blueprint class in their codebase, making this a breaking change.

@saMahmoudzadeh
Copy link
Contributor Author

Great, no problem. We can send it in version 12.

@saMahmoudzadeh saMahmoudzadeh changed the base branch from 11.x to master May 8, 2024 13:50
@saMahmoudzadeh saMahmoudzadeh changed the title [11.x] Remove unused parameter $connection [12.x] Remove unused parameter $connection May 8, 2024
@saMahmoudzadeh saMahmoudzadeh deleted the fix/blueprint branch May 8, 2024 14:44
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.

None yet