Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolrConnection should have a string representation #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmack
Copy link
Owner

@bmack bmack commented Feb 8, 2018

During to the SolrService/SolrConnection refactoring, the method __toString() is missing, but still called in
Classes/IndexQueue/FrontendHelper/PageIndexer.php (line 303) causing in Fatal (but recoverable) PHP Errors while indexing.

The patch adds the missing method again, which works just fine for our use cases (TYPO3 v9, solr-master)

During to the `SolrService/SolrConnection` refactoring, the method `__toString()` is missing, but still called in 
`Classes/IndexQueue/FrontendHelper/PageIndexer.php` (line 303) causing in Fatal (but recoverable) PHP Errors while indexing.

The patch adds the missing method again, which works just fine for our use cases (TYPO3 v9, solr-master)
bmack pushed a commit that referenced this pull request Feb 23, 2022
If using PHP 8.1, the following exception is thrown

```
PHP Runtime Deprecation Notice: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in
```

Cast the value to a string to avoid the exception
bmack pushed a commit that referenced this pull request Mar 30, 2023
bmack pushed a commit that referenced this pull request May 16, 2024
Fixes issue after PHPStan 1.11 upgrade:

```
Parameter #1 $boost of class ApacheSolrForTypo3\Solr\Domain\Search\Score\Score constructor expects float, string given.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant