---
title: "How do I resolve a PHPStan error?"
date: "2025-05-27T09:42:30+00:00"
summary: "Learn how to fix PHPStan errors in your Drupal project. Identify and update code that doesn't meet standards for smoother development."
image:
type: "article"
url: "/acquia-cloud-platform/add-ons/code-studio/help/69301-how-do-i-resolve-phpstan-error"
id: "f8852519-d810-4d5c-8a40-0104bfb14dc8"
---

**Description**

**Build stage**

**Job**

**Error message**

**Category**

**Responsibility**

[Test Drupal](https://docs.acquia.com/acquia-cloud-platform/add-ons/code-studio/docs/customizing-code-studio/drupal-auto-devops/autodevops-jobs#section-test-drupal-stage)

[PHP Stan](https://docs.acquia.com/acquia-cloud-platform/add-ons/code-studio/docs/customizing-code-studio/drupal-auto-devops/autodevops-jobs#section-test-drupal-job)

`Command ["$CI_PROJECT_DIR"/vendor/bin/phpstan] exited with code [1]`

Application

Customer

**Potential cause**

The existing code does not follow the proper coding standards.

**Solution**

Identify the files with code standards errors and update the code.