You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix PHPStan errors and apply code style improvements
- Fix method call from vectorize() to vectorizeTextDocuments() in Indexer
- Change null|string to ?string type hints in loader interfaces
- Remove unused imports from ReplaceTextTransformer
- Apply Yoda conditions in tests
- Use dedicated InvalidArgumentException for TextFileLoader null source
- Update parameter documentation for better clarity
- Remove trailing spaces and apply consistent formatting
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: examples/indexer/index-inmemory-loader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
28
28
$documents = [
29
29
newTextDocument(
30
-
Uuid::v4(),
30
+
Uuid::v4(),
31
31
'Artificial Intelligence is transforming the way we work and live. Machine learning algorithms can now process vast amounts of data and make predictions with remarkable accuracy.',
* Process sources through the complete document pipeline: load → transform → vectorize → store.
69
-
*
70
-
* @param null|string|array<string> $source Source identifier (file path, URL, etc.), array of sources, or null for InMemoryLoader
39
+
* @param null|string|array<string> $source Source identifier (file path, URL, etc.), array of sources, or null if the loader does not need a source, e.g. InMemoryLoader
Copy file name to clipboardExpand all lines: src/store/src/IndexerInterface.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,9 @@
19
19
interface IndexerInterface
20
20
{
21
21
/**
22
-
* @param null|string|array<string> $source Source identifier (file path, URL, etc.), array of sources, or null for InMemoryLoader
22
+
* Process sources through the complete document pipeline: load → transform → vectorize → store.
23
+
*
24
+
* @param null|string|array<string> $source Source identifier (file path, URL, etc.), array of sources, or null if the loader does not need a source, e.g. InMemoryLoader
0 commit comments