generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Use new %TagClass%() instead of %TagClass%::tag() #264
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
Merged
+875
−775
Merged
Changes from 31 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
c30b7c8
Use `new tagName()` without parentheses instead of static contructor
razvbir 8149d93
Use annotations instead of attributes for deprecation
razvbir 5c26f95
Revert "Use annotations instead of attributes for deprecation"
razvbir 1044c71
Add message to deprications
razvbir d58950a
Modify build and change log
razvbir 0388219
Apply PHP CS Fixer and Rector changes (CI)
razvbir 487547a
Add tests
razvbir 50a9db7
Merge branch 'master' of github.com:razvbir/html
razvbir 155c840
Update src/Widget/CheckboxList/CheckboxList.php
razvbir 52e7923
Update CHANGELOG.md
razvbir a1e5aaa
Update src/Tag/Base/NormalTag.php
razvbir ca0163d
Update src/Tag/Base/VoidTag.php
razvbir c13f890
Update src/Tag/CustomTag.php
razvbir 8d07325
Update src/Widget/RadioList/RadioList.php
razvbir 9fab09b
Update src/Widget/ButtonGroup.php
razvbir 58191cb
Revert "Modify build and change log"
razvbir 65ac00e
CR Changes
razvbir 09d9c82
Apply PHP CS Fixer and Rector changes (CI)
razvbir cc41b17
Apply PHP CS Fixer and Rector changes (CI)
samdark fe76b16
Add parenthesis to missed cases
razvbir d796ca7
Add parenthesis to missed cases
razvbir c953ad2
Add parenthesis to missed cases
razvbir 881e97c
Add parenthesis to missed cases
razvbir 69f123a
Whitelist Deprecated symbol and fix class_alias
razvbir bbe68d3
Add parenthesis to missed cases
razvbir dad58c9
Add parenthesis to missed cases
razvbir 2be0cf0
Apply PHP CS Fixer and Rector changes (CI)
razvbir c9377b6
Add @codeCoverageIgnore
razvbir 98dd286
Revert "Add @codeCoverageIgnore"
razvbir 2eefab9
Add tests for Deprecated attribute
razvbir 8b8280f
Apply PHP CS Fixer and Rector changes (CI)
razvbir c660bc5
Remove Deprecated polyfill
razvbir 12ead26
Merge branch 'master' of github.com:razvbir/html
razvbir 09e670c
Apply PHP CS Fixer and Rector changes (CI)
razvbir 37b523b
Improve CHANGELOG message and remove duplication
razvbir d765cac
Update composer-require-checker.json
razvbir 40a775d
Apply suggestions from code review
samdark 78ca707
Update CHANGELOG.md
vjik 702ed52
Add tests for static constructors
razvbir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Yiisoft\Html\Attribute; | ||
|
|
||
| use Attribute; | ||
|
|
||
| use const E_USER_DEPRECATED; | ||
|
|
||
| #[Attribute] | ||
| final class Deprecated | ||
razvbir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| public function __construct( | ||
| public readonly ?string $message, | ||
| public readonly ?string $since, | ||
| ) { | ||
| trigger_error($message ?? '', E_USER_DEPRECATED); | ||
| } | ||
| } | ||
|
|
||
| if (!class_exists('Deprecated')) { | ||
| class_alias(Deprecated::class, 'Deprecated'); | ||
| } | ||
razvbir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.