Comments (5)
Sadly scout doesnt implement the Builder interface :(
https://github.com/guiwoda/laravel-scout/blob/master/src/Builder.php
from laravel-excel.
It would be better to revert Scout Query and instead just call the underlying query builder with ->query
in code
from laravel-excel.
As far as I understood that wouldn't be the same. I don't see any reason to revert the Scout feature.
Not strictly use this type.
Nothing is "strictly" using this type, it's completly opt in. It's just on the doclbock, which Phpstan sees. Nothing breaks functionally.
I don't see your class in your issue, so I'm just guessing. But it sounds like you don't have a return type in your own code, so PHPstan will probably fallback onto the interface doclbock. If you just add \Illuminate\Contracts\Database\Query\Builder
as docblock or return type to your own code (like is intended), Phpstan will pass.
from laravel-excel.
@patrickbrouwers but there is an instance of Scout/Builder in code. how Does your code run if the Scout/Builder class is not available in your vendor packages?
at least laravel scout should be added in composer json as dependency
from laravel-excel.
Instanceof checks don't care about the class actually existing. The rest of the logic only runs if the class exists
from laravel-excel.
Related Issues (20)
- [Bug]: Import CSV to Database HOT 3
- [Bug]: Empty line error A1 in csv and excel HOT 3
- [Bug]: "Spreadsheet objects cannot be serialized" error with batch cell caching HOT 3
- [Bug]: WithColumnWidths not working with ShouldAutoSize in PDF HOT 4
- [Bug]: the column displayed in the error message is not the correct one for validation rules require_with:*.<number> HOT 2
- [Bug]: "Call to undefined function Maatwebsite\\Excel\\resolve()" HOT 2
- [Bug]: ob_end_clean(): Failed to delete buffer. No buffer to delete - after updating to 3.1.54 HOT 1
- [Bug]: ob_end_clean() Failed to delete buffer, while Exporting a file HOT 2
- [Bug]: passing `&` got the error HOT 3
- [Bug]: Escaping backslash issue HOT 2
- [Bug]: Object of class PhpOffice\PhpSpreadsheet\Calculation\Engine\Operands\StructuredReference could not be converted to string HOT 1
- [Bug]: When exporting csv of more than 1001 rows, if NO header rows are used, the output file is only 1000 rows HOT 3
- [Bug]: Maatwebsite\Excel\Jobs\AppendQueryToSheet has been attempted too many times. HOT 1
- [Bug]: Conflict on date timestamp and a numeric value
- [Bug]: Array and string offset access syntax with curly braces is deprecated HOT 1
- [Bug]: Cannot install the package HOT 10
- [Bug]: Excel download not working HOT 1
- [Bug]: BadMethodCallException HOT 1
- [Bug]: Large File with 100K and 12 MB return "Web server is returning an unknown error error code 520" HOT 2
- [Bug]: `required_without` and `required_without_all` validation not working properly. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-excel.