我在更新Lravel第10版至11版之后,试图掌握我的照片。 我对<代码>composer.json做了一些改动,并向Laravel11介绍了我的整个项目。 然而,当我试图执行我的指数时,我收到以下信息:
要求采用不明确的方法进行反思:
I m在XAMPP工作,我更新了我的PHP,使其达到8.2版本。 我没有对核心法典作任何改动,从而导致这一信息出现。
这一错误见vendorlaravelframeworkrcIlluminateContainerContainer.php
on line 680.
是否有其他人遇到这一错误?
最新情况:
随函附上我的<代码>composer.json。
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0",
"barryvdh/laravel-dompdf": "^2.0",
"barryvdh/laravel-snappy": "^1.0",
"guzzlehttp/guzzle": "^7.2",
"illuminate/support": "*",
"inertiajs/inertia-laravel": "^1.0",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.8",
"laravel/ui": "^4.2",
"maatwebsite/excel": "^3.1",
"milon/barcode": "^11.0",
"phpoffice/phpspreadsheet": "*",
"simplesoftwareio/simple-qrcode": "^4.2",
"spatie/laravel-medialibrary": "*",
"spatie/laravel-permission": "^6.4",
"wemersonjanuario/wkhtmltopdf-windows": "0.12.2.3",
"yoeunes/toastr": "^2.3"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.8",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^8.1",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\": "app/",
"Database\Factories\": "database/factories/",
"Database\Seeders\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r "file_exists( .env ) || copy( .env.example , .env );""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}