-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent fatal errors with DOMHelpers methods by improving typesa…
…fety and returning early (#257) * chore: update Composer dev-deps to latest * chore: cleanup EOL whitespace [phpcbf] * chore: update phpstan.neon config * fix: `Block::get_attribute_type()` param type and usage. * fix: improve typesafety in DOMHelpers
- Loading branch information
1 parent
205da8c
commit 6241c4e
Showing
5 changed files
with
212 additions
and
59 deletions.
There are no files selected for viewing
This file contains 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,12 @@ | ||
--- | ||
"@wpengine/wp-graphql-content-blocks": minor | ||
--- | ||
|
||
fix: prevent fatal errors by improving type-safety and returning early when parsing HTML. | ||
The following methods have been deprecated for their stricter-typed counterparts: | ||
- `DOMHelpers::parseAttribute()` => `::parse_attribute()` | ||
- `DOMHelpers::parseFirstNodeAttribute()` => `::parse_first_node_attribute()` | ||
- `DOMHelpers::parseHTML()` => `::parse_html()` | ||
- `DOMHelpers::getElementsFromHTML()` => `::get_elements_from_html()` | ||
- `DOMHelpers::parseText()` => `::parse_text()` | ||
- `DOMHelpers::findNodes()`=> `::find_nodes()` |
This file contains 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 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 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
Oops, something went wrong.