Your project uses non-strict array lookups 4
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.strict_array_lookup
- // Get column type
- $type = $columnTypes[$field] ?? 'string';
- // Include numeric columns (for aggregation)
- if (in_array($type, ['int', 'bigint', 'smallint', 'decimal', 'float', 'double'])) {
- return true;
- }
- // Include date/timestamp columns (for temporal analysis)
- if (in_array($type, ['date', 'datetime', 'timestamp', 'time'])) {
- if (in_array($type, ['date', 'datetime', 'timestamp', 'time'])) {
- return true;
- }
- // Include text columns (for filtering and grouping)
- if (in_array($type, ['varchar', 'char', 'text', 'enum'])) {
- return true;
- }
- // Exclude everything else (binary, blob, json, etc.)
- return false;
- if (in_array($type, ['int', 'bigint', 'smallint', 'decimal', 'float', 'double'])) {
- return true;
- }
- // Include date/timestamp columns (for temporal analysis)
- if (in_array($type, ['date', 'datetime', 'timestamp', 'time'])) {
- return true;
- }
- // Include text columns (for filtering and grouping)
- if (in_array($type, ['varchar', 'char', 'text', 'enum'])) {
- if ($field === $idColumn) {
- return true;
- }
- // Exclude system timestamp fields
- if (in_array($field, ['created_at', 'updated_at', 'deleted_at'])) {
- return false;
- }
- // Get column type
- $type = $columnTypes[$field] ?? 'string';
Your project uses legacy callable syntax instead of first-class callable syntax
- Read doc
- Productivity
- Info
More information: https://insight.symfony.com/what-we-analyse/php.use_first_class_callable_syntax
- $config = [];
- foreach ($embeddingTables as $embeddingTable) {
- // Extract entity type: clic_products_embedding -> products
- $entityType = str_replace([$prefix, '_embedding'], '', $embeddingTable);
- $table = $prefix . $entityType;
- // Get ID column from EntityRegistry (reuse existing logic)
- $idColumn = $entityRegistry->getIdColumnForEntityType($entityType);
gyakutsuki
gyakutsuki
gyakutsuki
gyakutsuki
gyakutsuki
gyakutsuki