Skip to content

Commit 4d25a1e

Browse files
authored
⬆ Update Foundation to v12.1.1 (#445)
1 parent 454fe43 commit 4d25a1e

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/Illuminate/Foundation/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
4545
*
4646
* @var string
4747
*/
48-
const VERSION = '12.0.1';
48+
const VERSION = '12.1.1';
4949

5050
/**
5151
* The base path for the Laravel installation.
@@ -257,7 +257,7 @@ public static function inferBasePath()
257257
isset($_ENV['APP_BASE_PATH']) => $_ENV['APP_BASE_PATH'],
258258
default => dirname(array_values(array_filter(
259259
array_keys(ClassLoader::getRegisteredLoaders()),
260-
fn ($path) => ! str_contains($path, '/vendor/'),
260+
fn ($path) => ! str_starts_with($path, 'phar://'),
261261
))[0]),
262262
};
263263
}

src/Illuminate/Foundation/Console/stubs/notification.stub

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class {{ class }} extends Notification
3535
public function toMail(object $notifiable): MailMessage
3636
{
3737
return (new MailMessage)
38-
->line('The introduction to the notification.')
39-
->action('Notification Action', url('/'))
40-
->line('Thank you for using our application!');
38+
->line('The introduction to the notification.')
39+
->action('Notification Action', url('/'))
40+
->line('Thank you for using our application!');
4141
}
4242

4343
/**

src/Illuminate/Foundation/Inspiring.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ class Inspiring
5656
*/
5757
public static function quote()
5858
{
59-
return static::quotes()
60-
->map(fn ($quote) => static::formatForConsole($quote))
61-
->random();
59+
return static::formatForConsole(static::quotes()->random());
6260
}
6361

6462
/**

0 commit comments

Comments
 (0)