Be explicit about mixed context elements by greg0ire · Pull Request #70 · php-fig/log · GitHub
Skip to content

Be explicit about mixed context elements#70

Merged
Seldaek merged 1 commit into
php-fig:masterfrom
greg0ire:better-typehints
Mar 23, 2020
Merged

Be explicit about mixed context elements#70
Seldaek merged 1 commit into
php-fig:masterfrom
greg0ire:better-typehints

Conversation

@greg0ire

Copy link
Copy Markdown
Contributor

If we do not do that, SA tools like PHPStan ask that the type be
documented more precisely in implementations.

If we do not do that, SA tools like PHPStan ask that the type be
documented more precisely in implementations.
greg0ire added a commit to greg0ire/migrations that referenced this pull request Mar 22, 2020
Just replacing the whole phpdoc with what's written in the interface
leads to phpcs no longer seeing that there is inheritance, and
forcefully adding a string type declaration in the signature, which
makes it incompatible with the interface.
A PR has been opened to fix the interface:
php-fig/log#70
greg0ire added a commit to greg0ire/migrations that referenced this pull request Mar 22, 2020
Just replacing the whole phpdoc with what's written in the interface
leads to phpcs no longer seeing that there is inheritance, and
forcefully adding a string type declaration in the signature, which
makes it incompatible with the interface.
A PR has been opened to fix the interface:
php-fig/log#70
greg0ire added a commit to greg0ire/migrations that referenced this pull request Mar 22, 2020
Just replacing the whole phpdoc with what's written in the interface
leads to phpcs no longer seeing that there is inheritance, and
forcefully adding a string type declaration in the signature, which
makes it incompatible with the interface.
A PR has been opened to fix the interface:
php-fig/log#70
greg0ire added a commit to greg0ire/migrations that referenced this pull request Mar 22, 2020
Just replacing the whole phpdoc with what's written in the interface
leads to phpcs no longer seeing that there is inheritance, and
forcefully adding a string type declaration in the signature, which
makes it incompatible with the interface.
A PR has been opened to fix the interface:
php-fig/log#70
greg0ire added a commit to doctrine/migrations that referenced this pull request Mar 22, 2020
Just replacing the whole phpdoc with what's written in the interface
leads to phpcs no longer seeing that there is inheritance, and
forcefully adding a string type declaration in the signature, which
makes it incompatible with the interface.
A PR has been opened to fix the interface:
php-fig/log#70

@Jean85 Jean85 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 but we need the editor's approval here

@Jean85 Jean85 requested a review from Seldaek March 23, 2020 09:07
@Seldaek Seldaek merged commit 0f73288 into php-fig:master Mar 23, 2020
@greg0ire greg0ire deleted the better-typehints branch March 23, 2020 10:06
@greg0ire

Copy link
Copy Markdown
Contributor Author

@Seldaek

Seldaek commented Mar 24, 2020

Copy link
Copy Markdown
Collaborator

Now

@greg0ire

Copy link
Copy Markdown
Contributor Author

greg0ire added a commit to greg0ire/migrations that referenced this pull request Mar 24, 2020
This reverts commit c63446d.
The issue has been fixed upstream in psr/log, and the fix released as
1.1.3
See php-fig/log#70
greg0ire added a commit to doctrine/migrations that referenced this pull request Mar 24, 2020
This reverts commit c63446d.
The issue has been fixed upstream in psr/log, and the fix released as
1.1.3
See php-fig/log#70
@uuf6429 uuf6429 mentioned this pull request Apr 1, 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.

3 participants