120歳まで生きます

今日を大切に。

120歳まで生きます

今日を大切に。

最近の記事

phpunitでテスト一覧を表示します。phpunit.xmlで命名した <testsuite name="abc"> に絞って。 $ vendor/bin/phpunit --testsuite abc --list-tests https://docs.phpunit.de/en/10.5/textui.html#selection

    • php7.1のxdebugは2.9でした https://xdebug.org/docs/compat

      • cakephpのelementはテンプレートのみ。cellはロジックとテンプレート。helperはロジックのみ。というルールで使い分けてみます。https://medium.com/anuix/why-use-cells-in-cakephp-4-and-how-287fe661185b

        • 今朝はphp7.3からphp7.4へアップデートしていました。 composer self-update composer update composer require --dev phpstan/phpstan

        phpunitでテスト一覧を表示します。phpunit.xmlで命名した <testsuite name="abc"> に絞って。 $ vendor/bin/phpunit --testsuite abc --list-tests https://docs.phpunit.de/en/10.5/textui.html#selection

        • php7.1のxdebugは2.9でした https://xdebug.org/docs/compat

        • cakephpのelementはテンプレートのみ。cellはロジックとテンプレート。helperはロジックのみ。というルールで使い分けてみます。https://medium.com/anuix/why-use-cells-in-cakephp-4-and-how-287fe661185b

        • 今朝はphp7.3からphp7.4へアップデートしていました。 composer self-update composer update composer require --dev phpstan/phpstan

          初phpstanなので助かります。 https://tech.yappli.io/entry/phpstan_error 修正後に、エラー回避設定から取り除くように促されているとは、Ignored error pattern XXX was not matched in reported errors. 気づかず。

          初phpstanなので助かります。 https://tech.yappli.io/entry/phpstan_error 修正後に、エラー回避設定から取り除くように促されているとは、Ignored error pattern XXX was not matched in reported errors. 気づかず。

          こういうのがChatGPTが話が通じると思うところ

          phpstanのエラーメッセージを渡すと 42 Offset 'dirname' does not exist on array{dirname?: string, basename: string, extension?: string, filename: string}. null合体演算子でnullを回避してきました // Check if 'dirname' exists in the array. If not, set a default va

          こういうのがChatGPTが話が通じると思うところ

          interfaceにprotectedメソッド作れないのは不満でした。arudinoやraspberrypiのように端子がむき出しだと、直結などの事故が起きます。子供に触らせるときはカバーをします。そんな感じで理解しました。https://atmarkit.itmedia.co.jp/bbs/phpBB/viewtopic.php?topic=5263&forum=12

          interfaceにprotectedメソッド作れないのは不満でした。arudinoやraspberrypiのように端子がむき出しだと、直結などの事故が起きます。子供に触らせるときはカバーをします。そんな感じで理解しました。https://atmarkit.itmedia.co.jp/bbs/phpBB/viewtopic.php?topic=5263&forum=12

          league/flysystemを1.1から2.5.6にあげました。adapterとmethodを調整しました。adapter https://flysystem.thephpleague.com/docs/adapter/local/ method https://flysystem.thephpleague.com/docs/upgrade-from-1.x/ を参照

          league/flysystemを1.1から2.5.6にあげました。adapterとmethodを調整しました。adapter https://flysystem.thephpleague.com/docs/adapter/local/ method https://flysystem.thephpleague.com/docs/upgrade-from-1.x/ を参照

          bitbucketのpipelineでphp74とphp8がキャッシュを上書きしあいエラーに。https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/ と https://qiita.com/keisuke-nakata/items/cb3d436519dab2868c39 を読みます。

          bitbucketのpipelineでphp74とphp8がキャッシュを上書きしあいエラーに。https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/ と https://qiita.com/keisuke-nakata/items/cb3d436519dab2868c39 を読みます。

          そもそも(実装も抽象)継承よりも委譲(デリゲーション)を使うべき。と書いてあって。この記事を読みました。https://chmod774.com/oop-inheritance-delegation/

          そもそも(実装も抽象)継承よりも委譲(デリゲーション)を使うべき。と書いてあって。この記事を読みました。https://chmod774.com/oop-inheritance-delegation/

          実装継承と抽象クラスで迷って。この記事にたどり着きました。https://qiita.com/yoshitaro-yoyo/items/3d9ad5ac4c231fdf6859

          実装継承と抽象クラスで迷って。この記事にたどり着きました。https://qiita.com/yoshitaro-yoyo/items/3d9ad5ac4c231fdf6859

          CakePHP4のfetchTable()がphpstanでundefined method Cake\ORM\Table::findByTitle()で怒。@method \App\Model\Table\ArticlesTable fetchTable()で回避

          CakePHP4のfetchTable()がphpstanでundefined method Cake\ORM\Table::findByTitle()で怒。@method \App\Model\Table\ArticlesTable fetchTable()で回避

          interfaceにentityのvirtual field。phpcsに怒。Public method name "ImageInterface::_getThumbnailPath" must not be prefixed with underscore

          interfaceにentityのvirtual field。phpcsに怒。Public method name "ImageInterface::_getThumbnailPath" must not be prefixed with underscore

          バージョンアップ中の機能追加で、どっちのブランチで開発するか迷いました。

          php7.4からphp8.0へバージョンアップをします。 同時に機能追加することになりました。 どちらで開発するか迷います。 バグフィックスはphp7.4で行い、php8.0に適用するみたいです。

          バージョンアップ中の機能追加で、どっちのブランチで開発するか迷いました。

          interfaceでぶつ切りにしたうえで、実装をまとめたいのです。この思いつきを疑っていました

          実例を探していました。手近なところにありました。CakePHP4のTableクラスです。 class Table implements RepositoryInterface, EventListenerInterface, EventDispatcherInterface, ValidatorAwareInterface{ use EventDispatcherTrait; use RulesAwareTrait; use ValidatorAwareT

          interfaceでぶつ切りにしたうえで、実装をまとめたいのです。この思いつきを疑っていました

          結合テーブルに条件をつけるのはクエリビルダを使いました

          まさかcontainにもクエリビルだが使えるとは $query = $categories->find();$query->contain('Items', function ($q) { return $q->where(['Items.status' => 1);}); https://book.cakephp.org/3/ja/orm/retrieving-data-and-resultsets.html#id12

          結合テーブルに条件をつけるのはクエリビルダを使いました