a2logic liked a comment+100 XP
2mos 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,
]);
a2logic liked a comment+100 XP
3mos ago
At the moment, PhpStorm doesn’t fully support Livewire 4 the same way it did previous versions. There isn’t a specific setting you’re missing — it’s mainly an IDE support gap.
JetBrains will likely add better support in upcoming PhpStorm updates once Livewire 4 stabilizes and its internals are fully documented. For now, keeping PhpStorm updated and using Laravel/Livewire-related plugins is your best option, but some features like autocomplete and component detection may be limited until official support lands.
a2logic started a new conversation+100 XP
4mos ago
Hello, I tried the new livewire4, but unfortunately I don't get the support from Ide like the old way with writing the components. So do you know if I need to enable a setting or some option in my Ide or the support will come in the upcoming patches of phpstorm. Thank you!
a2logic wrote a comment+100 XP
5mos ago
I believe the logic behind posts (making replies,re-posts, and quote pots) all in the same table introduced extra complexity.
a2logic wrote a comment+100 XP
5mos ago
couldn't we add another column in posts called 'type' with values ['post','reply','repost'] to make it easier to retrieve what we want later ?