Мало кто знает, но что бы работал migration:diff вам не нужно ставить ORM.
Что бы это работало объявим простой сервис:
<?php
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
<?php | |
use Phan\CodeBase; | |
use Phan\Language\Context; | |
use Phan\Language\UnionType; | |
use Phan\PluginV2\ReturnTypeOverrideCapability; | |
use Phan\Language\Element\Method; | |
use Phan\PluginV2; | |
use \Phan\Language\FQSEN\FullyQualifiedClassName; | |
use Phan\Language\Element\Clazz; |
I did a screencast series recently talking about my favorite Vue 3 feature: function refs. Check out the screencast series for more context-in this gist, I'm going to answer a fantastic question I got in one of the videos' comment section.
This question was about how to properly update arrays of elements that are captured by function refs. Let's check out the basic principle first, before we look at the details of the question.
<script setup>
import { ref, onBeforeUpdate } from 'vue'