Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

338
Vistas
Cannot deploy Laravel App to Heroku - symfony/polyfill-ctype v1.24.0 requires php >=7.1

I'm currently developing an app in Laravel and deploying it in Heroku.

I get this error when pushing:

symfony / polyfill-ctype v1.24.0 requires php >= 7.1

Anyone knows how to solve this?

The truth is that I investigated but I couldn't think of what to do. I already tried running composer update and there is no solution either.

Im using Laravel Framework 8.78.1

{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
    "php": "^7.3|^8.0",
    "fideloper/proxy": "^4.4",
    "fruitcake/laravel-cors": "^2.0",
    "guzzlehttp/guzzle": "^7.0.1",
    "laravel/framework": "^8.40",
    "laravel/passport": "^10.2",
    "laravel/tinker": "^2.5"
},
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Add the following to the require section of your composer.json file:

"symfony/polyfill-ctype": "~1.23.0",
"symfony/polyfill-iconv": "~1.23.0",
"symfony/polyfill-mbstring": "~1.23.1",
"symfony/polyfill-php80": "~1.23.1"

From Heroku support: "As symfony/polyfill-ctype declares ext-ctype as provided since v1.24.0 and this package is already bundled with the PHP package that Heroku provides, this leads to a conflict due to how Composer 1 resolves dependencies."

The 1.23 packages don't have this issue. Don't update to 1.24 until Heroku supports composer v2.

UPDATE Jan. 7, 2022: Heroku has hotfixed the issue. Declaring specific package versions should not be necessary. https://github.com/heroku/heroku-buildpack-php/issues/528

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda