mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
php 7.4 refactor
This commit is contained in:
parent
21c2fd4e94
commit
bb40b60d3e
4 changed files with 40 additions and 15 deletions
|
|
@ -10,9 +10,12 @@ namespace App\Twitter;
|
|||
*/
|
||||
class TwitterImage
|
||||
{
|
||||
public function __construct(
|
||||
public string $url,
|
||||
) {}
|
||||
public string $url;
|
||||
|
||||
public function __construct(string $url)
|
||||
{
|
||||
$this->url = $url;
|
||||
}
|
||||
|
||||
public function __call($size, $args): string
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue