Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As title
Proposed resolution
Recommended regex for searching: assert\w+\(.+instanceof.+\)
Example:
- $this->assertTrue($property instanceof StringInterface, 'Got the right wrapper fo the page.front property.');
+ $this->assertInstanceOf(StringInterface::class, $property, 'Got the right wrapper fo the page.front property.');
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | facets-replace_instanceof_to_assertInstanceOf-3139032-2.patch | 1.55 KB | mero.S |
Comments
Comment #2
mero.S CreditAttribution: mero.S as a volunteer and at AnyforSoft for AnyforSoft commentedComment #3
mero.S CreditAttribution: mero.S as a volunteer and at AnyforSoft for AnyforSoft commentedComment #5
borisson_Committed and pushed, thanks.,