Skip to content
Snippets Groups Projects

Add strong typing for 3.0 version

Merged Krzysztof Dyszczyk requested to merge feature/strong-typing into devel
6 files
+ 30
75
Compare changes
  • Side-by-side
  • Inline

Files

@@ -45,13 +45,7 @@ trait HtmlAttributes {
@@ -45,13 +45,7 @@ trait HtmlAttributes {
return isset( $this->attributes[ $name ] );
return isset( $this->attributes[ $name ] );
}
}
/**
public function get_attribute( string $name, string $default = null ): string {
* @param string $name
* @param ?string $default
*
* @return string
*/
public function get_attribute( string $name, $default = null ): string {
return $this->attributes[ $name ] ?? $default;
return $this->attributes[ $name ] ?? $default;
}
}
}
}
Loading