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 | fast_404-replace_instance_of_with_assetInstanceOf-3138281-2.patch | 602 bytes | alexshipilov |
|
Comments
Comment #2
alexshipilov CreditAttribution: alexshipilov at AnyforSoft for AnyforSoft commentedComment #3
alexshipilov CreditAttribution: alexshipilov at AnyforSoft for AnyforSoft commentedComment #5
gg4 CreditAttribution: gg4 commentedThanks!