Skip to content

Commit 88fffb5

Browse files
committed
Type-hint static instead of self
1 parent cc59804 commit 88fffb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/Assets/Asset.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public function add_to_group_path( string $group_path_name ) {
345345
* @param string|null $version The asset version.
346346
* @param string|null $root_path The path to the root of the plugin.
347347
*
348-
* @return self
348+
* @return static
349349
*/
350350
public static function add( string $slug, string $file, string $version = null, $root_path = null ) {
351351
return Assets::init()->add( new self( $slug, $file, $version, $root_path ) );

Diff for: src/Assets/VendorAsset.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct( string $slug, string $url, string $type = 'js' ) {
5151
* @param ?string $type The asset type.
5252
* @param ?string $version The asset version.
5353
*
54-
* @return self
54+
* @return static
5555
*/
5656
public static function add( string $slug, string $url, ?string $type = null, $version = null ) {
5757
$instance = new self( $slug, $url, $type ?? 'js' );

0 commit comments

Comments
 (0)