Вызов неопределенного метода Illuminate \ Foundation \ Application :: share () в SentryServiceProvider. php - PullRequest
1 голос
/ 29 мая 2020

Я пытаюсь выполнить обновление с Laravel 5.3 до Laravel 5.4, но при запуске composer update в php artisan optimize я получаю сообщение об ошибке в SentryServiceProvider. это сообщение об ошибке:

In SentryServiceProvider.php line 77: Call to undefined method Illuminate\Foundation\Application::share()

это мой composer. json

    {
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.4.36",
        "doctrine/dbal": "2.5",
        "cartalyst/sentry": "dev-feature/laravel-5",
        "tymon/jwt-auth": "0.5.*",
        "guzzlehttp/guzzle": "^6.2",
        "barryvdh/laravel-cors": "0.9.x",
        "guzzlehttp/oauth-subscriber": "0.3.*",
        "intervention/image": "2.3",
        "yajra/laravel-datatables-oracle": "6.3",
        "yaro/log-envelope": "1.*",
        "mcamara/laravel-localization": "1.0.*",
        "schuppo/password-strength": "~1.5",
        "maatwebsite/excel": "2.1.29",
        "tecnick.com/tcpdf": "~6.0.0",
        "cviebrock/eloquent-sluggable": "^3.1",
        "predis/predis": "^1.0",
        "nicolaslopezj/searchable": "1.*",
        "zizaco/entrust": "5.2.x-dev",
        "facebook/php-sdk-v4": "~5.0",
        "facebook/graph-sdk": "^5.3",
        "torann/currency": "^0.3.1",
        "league/flysystem-aws-s3-v3": "^1.0",
        "s-ichikawa/laravel-sendgrid-driver": "~1.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~5.7",
        "phpspec/phpspec": "~2.1",
        "symfony/dom-crawler": "~3.1",
        "symfony/css-selector": "~3.1"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "pre-update-cmd": [
            "php artisan clear-compiled"
        ],
        "post-update-cmd": [
            "php artisan optimize"
        ],
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

Я попытался изменить что-то код share() в От SentryServiceProvider.php до singleton(), но это не сработало. И я попытался найти обновление cartalyst/sentry в packagist, но версия не обновлена ​​и устарела.

...