Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

When i composer update getting error : "is_dir(): Argument #1 ($filename) must be of type string, int given" #59607

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

Closed
samadhan-dhangar opened this issue Jan 24, 2025 · 0 comments

Comments

@samadhan-dhangar
Copy link

samadhan-dhangar commented Jan 24, 2025

Symfony version(s) affected

6.3.12

Description

Hello Team this is my composer file let me know if anyone can help me to resolve this?

{
  "type": "project",
  "license": "proprietary",
  "require": {
    "php": " ^8.1",
    "ext-ctype": "*",
    "ext-iconv": "*",
    "ext-zip": "*",
    "aws/aws-sdk-php": "^3.209",
    "beberlei/doctrineextensions": "^1.3",
    "composer/package-versions-deprecated": "^1.10",
    "cron/cron-bundle": "^2.6",
    "doctrine/annotations": "^1.0",
    "doctrine/doctrine-bundle": "^2.4",
    "doctrine/doctrine-migrations-bundle": "*",
    "doctrine/orm": "^2.9",
    "dompdf/dompdf": "2.0.0",
    "eluceo/ical": "^2",
    "erusev/parsedown": "^1.7",
    "gjuric/i18n-routing-bundle": "3.2.1",
    "h2entwicklung/sign-checker": "^0.1.0",
    "knplabs/knp-gaufrette-bundle": "^0.7.1",
    "knpuniversity/oauth2-client-bundle": "2.18",
    "laminas/laminas-code": "^4.5",
    "laminas/laminas-escaper": "^2.6",
    "league/flysystem-aws-s3-v3": "^2.4",
    "liip/imagine-bundle": "^2.7",
    "matomo/device-detector": "^6.1",
    "microsoft/azure-storage-blob": "^1.5",
    "nelmio/cors-bundle": "^2.3",
    "oneup/flysystem-bundle": "^4.3",
    "ozdemirburak/iris": "^3.1",
    "phpdocumentor/reflection-docblock": "^5.2",
    "phpstan/phpdoc-parser": "^1.20",
    "spatie/pdf-to-image": "^1.2",
    "stevenmaguire/oauth2-keycloak": "^2.2",
    "symfony/apache-pack": "^1.0",
    "symfony/asset": "6.3.*",
    "symfony/console": "6.3.*",
    "symfony/doctrine-messenger": "6.3.*",
    "symfony/dotenv": "6.3.*",
    "symfony/expression-language": "6.3.*",
    "symfony/flex": "^1.3.1",
    "symfony/form": "6.3.*",
    "symfony/framework-bundle": "6.3.*",
    "symfony/http-client": "6.3.*",
    "symfony/intl": "6.3.*",
    "symfony/ldap": "6.3.*",
    "symfony/mailer": "6.3.*",
    "symfony/mailgun-mailer": "6.3.*",
    "symfony/mercure-bundle": "^0.3.3",
    "symfony/messenger": "6.3.*",
    "symfony/monolog-bundle": "^3.1",
    "symfony/process": "6.3.*",
    "symfony/property-access": "6.3.*",
    "symfony/property-info": "6.3.*",
    "symfony/proxy-manager-bridge": "6.3.*",
    "symfony/runtime": "6.3.*",
    "symfony/security-bundle": "6.3.*",
    "symfony/serializer": "6.3.*",
    "symfony/templating": "6.3.*",
    "symfony/translation": "6.3.*",
    "symfony/twig-bundle": "6.3.*",
    "symfony/validator": "6.3.*",
    "symfony/web-link": "6.3.*",
    "symfony/webpack-encore-bundle": "^2.1",
    "symfony/yaml": "6.3.*",
    "twig/cssinliner-extra": "^3.0",
    "twig/extra-bundle": "~3.1",
    "twig/inky-extra": "^3.0",
    "twig/intl-extra": "^3.2",
    "twig/markdown-extra": "^3.3",
    "twig/twig": "^3.0",
    "vich/uploader-bundle": "^1.19"
  },
  "require-dev": {
    "dama/doctrine-test-bundle": "^v7.2",
    "dbrekelmans/bdi": "^1.0",
    "doctrine/doctrine-fixtures-bundle": "^3.4",
    "phpstan/phpstan": "^1.8",
    "phpunit/phpunit": "^9",
    "rector/rector": "^0.13.9",
    "squizlabs/php_codesniffer": "^3.7",
    "symfony/browser-kit": "5.4.*",
    "symfony/css-selector": "6.3.*",
    "symfony/debug-bundle": "6.3.*",
    "symfony/maker-bundle": "^1.53",
    "symfony/panther": "^2.0",
    "symfony/phpunit-bridge": "^6.3",
    "symfony/stopwatch": "6.3.*",
    "symfony/web-profiler-bundle": "6.3.*"
  },
  "config": {
    "preferred-install": {
      "*": "dist"
    },
    "sort-packages": true,
    "allow-plugins": {
      "symfony/flex": true,
      "symfony/runtime": true
    }
  },
  "autoload": {
    "psr-4": {
      "App\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "App\\Tests\\": "tests/"
    }
  },
  "replace": {
    "paragonie/random_compat": "2.*",
    "symfony/polyfill-ctype": "*",
    "symfony/polyfill-iconv": "*",
    "symfony/polyfill-php71": "*",
    "symfony/polyfill-php70": "*",
    "symfony/polyfill-php56": "*"
  },
  "scripts": {
    "auto-scripts": {
      "cache:clear": "symfony-cmd",
      "assets:install %PUBLIC_DIR%": "symfony-cmd"
    },
    "post-install-cmd": [
      "@auto-scripts"
    ],
    "post-update-cmd": [
      "@auto-scripts"
    ],
    "phpstan": "vendor/bin/phpstan -c phpstan.neon",
    "db-drop": "php bin/console doctrine:database:drop --force --if-exists",
    "db-create": "php bin/console doctrine:database:create",
    "db-migrate": "php bin/console doctrine:migrations:migrate -n",
    "db-fixtures-test": "php bin/console doctrine:fixtures:load -n --env=test",
    "db-reset": [
      "@db-drop",
      "@db-create",
      "@db-migrate"
    ],
    "db-reset-test": [
      "@db-drop --env=test",
      "@db-create --env=test",
      "@db-migrate --env=test",
      "@db-fixtures-test"
    ],
    "test-prepare": [
      "@db-reset-test",
      "Composer\\Config::disableProcessTimeout"
    ],
    "test": [
      "@test-prepare",
      " php vendor/bin/phpunit --testsuite=Development"
    ],
    "test-complete": [
      "@test-prepare",
      " php vendor/bin/phpunit --testsuite=Complete"
    ]
  },
  "conflict": {
    "symfony/symfony": "*"
  },
  "extra": {
    "symfony": {
      "allow-contrib": false,
      "require": "6.3.*"
    }
  }
}

above file is my composer.json file previous working but now composer update getting below error



Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!  TypeError {#7188
!!    #message: "is_dir(): Argument #1 ($filename) must be of type string, int given"
!!    #code: 0
!!    #file: "D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\doctrine\persistence\src\Persistence\Mapping\Driver\SymfonyFileLocator.php"
!!    #line: 180
!!    trace: {
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\doctrine\persistence\src\Persistence\Mapping\Driver\SymfonyFileLocator.php:180 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\doctrine\persistence\src\Persistence\Mapping\Driver\FileDriver.php:137 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\doctrine\persistence\src\Persistence\Mapping\Driver\MappingDriverChain.php:104 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\doctrine\doctrine-bundle\src\Mapping\MappingDriver.php:26 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\doctrine\persistence\src\Persistence\Mapping\AbstractClassMetadataFactory.php:95 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\symfony\doctrine-bridge\CacheWarmer\ProxyCacheWarmer.php:63 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\symfony\http-kernel\CacheWarmer\CacheWarmerAggregate.php:99 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\symfony\http-kernel\Kernel.php:545 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\symfony\http-kernel\Kernel.php:759 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\symfony\http-kernel\Kernel.php:126 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\symfony\framework-bundle\Console\Application.php:154 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\symfony\framework-bundle\Console\Application.php:72 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\vendor\symfony\console\Application.php:174 { …}
!!      D:\Development\RadiantMeetAdmin\RadiantMeetAdmin\bin\console:42 {
!!        › $application = new Application($kernel);\r
!!        › $application->run($input);\r
!!        ›
!!        arguments: {
!!          $input: Symfony\Component\Console\Input\ArgvInput {#2 …}
!!        }
!!      }
!!    }
!!  }
!!  2025-01-24T13:58:01+01:00 [info] User Deprecated: The "Monolog\Logger" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Symfony\Bridge\Monolog\Logger".
!!  2025-01-24T13:58:01+01:00 [critical] Uncaught Error: is_dir(): Argument #1 ($filename) must be of type string, int given
!!
Script @auto-scripts was called via post-update-cmd

How to reproduce

Run composer i command

Possible Solution

No response

Additional Context

No response

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants