Skip to content

Commit

Permalink
Fix Artisan history file for Windows (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmdh committed Apr 13, 2022
1 parent 156535c commit 36b8bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/tinker.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected function createShell(BufferedOutput $output): Shell
'rawOutput' => true,
]);

$config->setHistoryFile(defined('PHP_WINDOWS_VERSION_BUILD') ? 'null' : '/dev/null');
$config->setHistoryFile(defined('PHP_WINDOWS_VERSION_BUILD') ? $_SERVER['TEMP'] . '\\.lk_artisan_temp' : '/dev/null');

$config->getPresenter()->addCasters([
Collection::class => 'Laravel\Tinker\TinkerCaster::castCollection',
Expand Down

0 comments on commit 36b8bcf

Please sign in to comment.