0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

DDEV において、 assertion 周りの設定は不要

Posted at

assertion

開発環境等では、Assertion を有効にし、エラーを出すことが推奨される。

そのためには、下記パラメタを有効にする必要がある。

  • zend.assertions
  • assert.exception

それぞれ、 php.ini 等に設定することで有効化する。

DDEV では

DDEV においては、 zend.assertions がすでに有効化されている。

tarohida@tarohida-l13:~/projects/drupal11$ ddev ssh
tarohida@drupal11-web:/var/www/html$ cat /etc/php/8.3/fpm/conf.d/20-assert.ini
[Assertion]
zend.assertions = 1
tarohida@drupal11-web:/var/www/html$

また、 PHP8.0 以降において、 assert.exception はデフォルトで有効である。

上記2点より、 DDEV では起動すればすでに assertion 周りの設定がデフォルトで有効になっており、明示的に有効化する対応は不要である。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?