AdamBark liked a comment+100 XP
3mos ago
@mrrobotoh Sorry about this! All fixed now.
AdamBark liked a comment+100 XP
3mos ago
the link https://laravelfromscratch.com seems to be broken
AdamBark liked a comment+100 XP
3mos ago
where can I find the source code?
AdamBark liked a comment+100 XP
3mos ago
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnUnionTypeRector;
use Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
use RectorLaravel\Set\LaravelSetProvider;
return RectorConfig::configure()
->withPaths([
__DIR__.'/app',
__DIR__.'/bootstrap',
__DIR__.'/config',
__DIR__.'/public',
__DIR__.'/resources',
__DIR__.'/routes',
__DIR__.'/tests',
])
->withSkip([
__DIR__.'/bootstrap/cache',
__DIR__.'/storage',
__DIR__.'/vendor',
AddClosureVoidReturnTypeWhereNoReturnRector::class,
ReturnTypeFromStrictTypedCallRector::class,
ReturnUnionTypeRector::class,
DeclareStrictTypesRector::class => [
__DIR__.'/resources/views',
],
AddArrowFunctionReturnTypeRector::class,
])
->withPhpSets()
->withSetProviders(LaravelSetProvider::class)
->withImportNames()
->withComposerBased(laravel: true)
->withPreparedSets(
deadCode: true,
codeQuality: true,
typeDeclarations: true,
privatization: true,
earlyReturn: true,
)
->withRules([
DeclareStrictTypesRector::class,
]);
AdamBark liked a comment+100 XP
4mos ago
@AdamBark These are just non-blocking deprecation warnings, likely because of the installer you're running has dependencies not yet ready for PHP 8.4 used in CLI. If you are bothered, update the installer in Herd and you should be good to go.
AdamBark wrote a comment+100 XP
4mos ago
I've been away from laravel for a few years and coming back for a refresh - why do I see so many yellow deprecation notices when creating a new project? I noticed a few in the video too.